I have a large modern fantasy Empire in my setting, and it focuses on the exploits of several students in a military academy. At some point in the story, however, a war breaks out and the academy becomes a focal point of a siege.
For potential references in case this may help, the tech level of this Empire is near futuristic. Mechs and airships existing and used extensively for warfare. Weaponry is mostly guns, though power armor that can defend against those guns exist, and they’re more effectively fought in melee.
My question is, would there be a practical reason for an Empire, or specifically an Empire with this tech level, to house such an academy in a military structure that, during a war, would actually make for a proper defensible structure?