Companies do make/buy decisions on everything, it just software. Cleaning services are not expensive, yet companies contract them instead of hiring staff.
This is called transaction cost economics, if anyone’s interested.