True but that's only if the purpose is to keep it's occupants safe which is only half of it's job, it's also supposed to protect it's surroundings such as cities and precious resources. And if said fortress is a city itself then it has to be in a central area for trading. Hiding underground is...