Not sure what replacable has to do with thickness.
When I bought my first smartpone, a Moto G (1st gen) it was as flat as any phone most people carried around at the time (2014, I think). And the battery was replaceable.
I think also Samsung phones had replaceable batteries then. And this was the case for a few years after. Until it wasn't.
Devices didn't suddenly get thin when batteries were glued in. Why would they?
A replaceable battery needs protection. One in the device gets protection from the device.
The Samsung S5 was very thin. Too thin imo. And it had a replaceable battery