Maybe the perp suspected the two of being undercover law enforcement?
Apparently the murdered were ex-gang members.