There are U-Schiffe too, which are larger than U-Boote, but the claustrophobia element wouldn't have been as intense in the film. On the other hand, an U-Schiff would have never become unstuck from the bottom of the Mediterranean. Another example of ships getting stuck where boats don't. (If you haven't seen the movie, this likely makes zero sense.)