It's a security thing. The alarm goes off if you leave the window open...
What I tend to do is do the driver's window a couple inchs open, lock drivers door from passenger side, and leave passenger window enough for me to lock the passenger side door..
That way, windows open, car locked and no alarm going off..