Just cuz something’s legal doesn’t mean it’s right.
If it doesn’t have power or water, wouldn’t it be considered uninhabitable?