It's not.
National parks, museums and lots and lots of places requires tickets to enter, are they also against freedom of movement?
No one forbids you to go there, no one forbids you to stay and live there.
Treat this city as a one, big, crowdy museum.