The guy asleep in bed is an 'innocent bystander', not a 'bad guy'. If officer safety was actually the motivating concern here, then they absolutely would have spoken with security (if for no other reason than to get a quick idea of the apartment layout).
The guy asleep in bed is a 'bad guy', as those police saw the situation. Yes, they were wrong and stupid. But that was their interpretation of the situation.