Then they should lose their job and find a career that doesn't profit in the oppression of its people. That's like saying "well, the Nazi's/murderous people in afghanistan/anyone who does something evil for money needed a job, so...."
Arresting someone for dancing near a rock seems like such a trivial thing. But, it's also a moral (subtle, but still moral) thing, and those things define us and our society.
It's like, allowing atrocious things like this to happen is a very subtle nuance of oppression, but it's still there. It's because usually, people sort of see this "wrongness" as a fiction, a blip of logic and fact, ignoring it, and going on with their day. They see that the act of arrest for dancing is wrong, but they permit it because of some arbitrary thing like a designated "rule," because its easier than feeling uncomfortable about it. Then, they even blame the victim, regardless of if the victim was in the right. But... this only legitimizes the power that forces like this have over us.