Lookup why torpedo's are almost universally 21" in diameter. The short version: because that was how big they were last time. There is no reason beyond 21" being usrd once upon a time and nobody wanting to break from it and have the old torpedos not work in the new boats.
H I Sutton, a naval defense analyst, made a nice video on this topic.
[1]: https://www.youtube.com/watch?v=cuS0yhwSPMc