The castle well is in an inside wall to prevent the enemy from poisoning or cutting off the water supply.