You are standing on the city walls. The defensive system, built from the 11th century onwards, consisted of two separate sections: one around the castle, and the other around the town. Each was surrounded by a rampart, and a moat separated them. For more details, see the information panels.