This is exactly spot on.
The militarization got a big boost with post-9/11 funding when every cop from the NYPD to Barney Fife was expected to be a counter-terrorism force. And it just kept on keepin' on.
Cops aren't social workers, nor are they drug & alcohol counselors (although the folks who are hatin' on the police probably have no frickin' idea how progressive police response has become regarding people with substance use disorders), nor are they trained to be teachers, mental health counselors, mentors, coaches, surrogate parents, a shoulder to cry on, even though we expect them to be all of those things while they're wearing bullet proof vests.
Maybe we should flip the script and arm the social workers. They're typically young college grads with bright agendas who are literally walking into serious shit with no training on how to protect themselves or the people they're there to help. They can use some literal firepower in their hands.