What are reasons an institution would choose to develop software instead of purchasing from a vendor

Healthcare informatics
1). What are reasons an institution would choose to develop software instead of purchasing from a vendor
2.) Describe how the integration of information from clinical laboratory data can help improve systems used in an ICU