There's no real "why" to it. It's not like any individual in a corporation chooses to run the corporation that way. It's rather an emergent effect of how corporations are legally structured (= shareholders electing/firing directors from the board based on quarterly results.) Directors are incentivized to pursue short-term profits during their tenure (such as by overworking employees), to enable them to enjoy the spoils of their positions for as long as possible.
A corporation can be "designed" intentionally to do something other than this (by e.g. choosing to create a benefit corporation; or even just by the founder retaining majority ownership and thus effectively "being" the board) but if you don't explicitly make a choice, being driven by quarterly profitability is what you get.
I don't know why everything has to be run down to the wire in the name of minimizing cost and maximizing profit.