The loophole was designed for shooting inside the fortress. Apparently the tower was a kind of 'citadel', i.e. served as the last line of defense in the event of an enemy breakthrough into the fortress.