There used to be a wall surrounding the city in medieval times, and these towers were the north gate. Nowadays they are always open, but the doors are still there. If someone is given the keys of the city, it's the keys of these doors they receive - and they work!
Ian