There are design tradeoffs to make the batteries user-replaceable. E.g., the batteries are going to need a casing and socket that make them OK for users to handle and replace. The phone's going to need additional casing pieces, latches, and seals, etc. The phone's going to be a little bigger, heavier and more expensive. Maybe not a great tradeoff for something needed once every 2-3 years.
I just looked up and Apple is charging $50-$70 to replace your battery, depending on the model. So ~$25-$45 more expensive than a cheap DIY kit from amazon. Considering the various risks of DIY, that's really not that bad to do once every 2-3 years, IMO.