IIRC the boat is not really floating. It's some sort of an underwater "dry dock" if it can still be called so.
I think the sub is that high in the water to show the upper pair of opened torpedo tubes so that one can have a look through them from inside.