When the two female characters enter the fancy hotel room, they make a point to say they will only be there for a couple of minutes. It is daylight when they go in. The visit is cut short (the one that's supposed to be a few minutes long) because of a gun battle in which one of the women dies and the other escapes. The escaped one gets out through the roof into an evening's sky. There's still light visible, but for a visit that lasts all of 4 minutes, it's far too quick a change.
Pretty much all of the dialog between Martin Lawrence and Will Smith was ad-libbed. The original script can be found here: http://www.imsdb.com/scripts/Bad-Boys.html, as Don Simpson and Jerry Buckheimer thought it would be better and more funny.