Eh, realism is overrated (especially when dealing with escapist fantasy); besides which, you could enter most houses in Baldur's Gate and Baldur's Gate 2 without being immediately assaulted.