This policy has nothing to do with opinions and political leanings; it's a physical safety policy for an office. Most offices would also deny you access if you try to get in and stab fellow employees with dirty needles you found by the bus stop.
You could argue the merits of Google not allowing employees the option to permanently work from home, but as far as their offices are concerned this is a very sane requirement for entry given the hazards that currently exist.