You are missing a few facts.
High on meth he tried to run down a cop and then unprovoked started shooting at them when caught trying to steal a car.
When they entered the house he started shooting through the walls at them.