The police aren't a part of the community they serve, it's explicitly trained into them to treat every situation as "us" vs "them". If "they" have rifles then "we" need armored vehicles.
Edit: to be very clear, I am not in support of police militarization.