And the reason they have that military equipment is that they are cast-offs from the US military's misadventures in Afghanistan and Iraq.

There is basically a military-to-police pipeline in the USA.