I think the attack boils down to the guy is crazy. As such, he should not be allowed to roam around in public.
I’m not sure he had a “motive”
He’s been in trouble before including trying to gouge out a police officer’s eyes.
I’m sure he has many issues he calls motives.