Plenty of phones had replaceable batteries, water resistance, and headphone sockets.
Of course, that was before Apple issued the edict that it was impossible.
However it’s worth noting that in the era you described where phones had replaceable batteries, water damage was also a lot less permanent.
Back then, you would whip the battery out, leave the phone in rice for a day, then it would power up the following day as if nothing had happened.
These days I couldn’t see that working even if you could remove the battery. And when you also factor in how much more essential phones are to our every day lives (they’re our wallet, plane boarding pass, health monitors, location tracking for nervous parents, etc. we don’t even remember important phone numbers like we used to). Regardless of whether you agree with all these use cases, it does result in a scenario where water resistance is a lot more important than it used to be.
It’s certainly true from my experience but perhaps others have had different experiences?