I believe they did it because they wanted the power that owning a media outlet can provide in order to help protect their actually profitable businesses.
It certainly helps that they have their own revenue streams so that they're not just money down the drain. If the Post loses $100M per year, but Amazon keeps making Bezos $50B per year, that's fine, probably costs him less than the depreciation on his yachts or jets.