Alternatively, Apple prevented people from wasting their money on a feature that was about to be built into the OS.
Remember, money "wasted" on apps is straight revenue for Apple. It's why they want to win the case against Epic (and by extension Netflix, Spotify, etc) so badly, because they get a sweet 15% on every purchase made at minimal cost.
There are other ways to solve the "wasting their money" problem - offer refunds or similar (again, not at the expense of the developer)