They can absolutely waterproof all of the working bits separately from the battery. The battery does not need to be in the same enclosure. It could even be attached with the same kind of waterproofing glue to protect the connection but would be easier to remove and replace than taking the entire phone apart.
The reason they don't do it is because it requires slightly more thickness and makes it feasible for people to replace the battery.
They can absolutely waterproof all of the working bits separately from the battery. The battery does not need to be in the same enclosure. It could even be attached with the same kind of waterproofing glue to protect the connection but would be easier to remove and replace than taking the entire phone apart.
The reason they don't do it is because it requires slightly more thickness and makes it feasible for people to replace the battery.