Why can you take photos of certain government buildings?

and what happens if you get caught
3 answers 3