They were looking for an open window because would be the easiest target, they are not guided by logic or they wouldn’t be thugs.
They may not have known they were using logic .. but I guess you could classify it as “self preservation” instead.