One's investment in mining equipment becomes half as profitable every so often.
Bitcoin could have been designed with a different money supply mechanism (e.g. no halvings) but it would still have required mining. The hash rate has basically no impact on the money supply. That's because mining doesn't solve the problem of limiting the money supply, it solves the problem of decentralized consensus, aka the double spending problem.
Imagine you are a miner and a halving is next week. One week you earn 1btc. None of those other factors you mentioned have changed.
Then the halving happens so the next week you make 0.5btc. However yours and everyone else's held bitcoins are still worth the same as they were before.
Hasn't your mining profitability halved?