Good question. The short answer is.. because this is safer than a pistol and will mean fewer people die.
A pistol by its very nature is much less accurate. Even at 10 yards its not hard to miss your target and shoot a bullet into the wall that might kill the old lady next to you.
Hollow-point 0.223 in a ar-15 is going to have a longer barrel and better sight along with a shoulder-rest which makes it far more stable. This means you are far more likely to hit your target and not kill an innocent bystander. With hollow tips penetration damage is negated too.
Of course if pistols were allowed shoulder-rests they could be at least a bit safer.. but of course democrats already made that impossible which over the years has pushed people to AR-15 platforms for close quarters for the added safety.
They make 9mm AR-15 platofrms by the way, that wouldnt be a bad choice either.