If the compartment with the battery isn’t waterproof it’s not a waterproof phone.
Second, it's possible to make the battery connections water resistant, so yes, you can have a water resistant phone AND have a replaceable battery in it's own compartment.