You probably pressed unlock twice in quick succession. If you have comfort entry selected, doing this will cause the window of either door that is opened to drop all the way and once you close the door the window will close too. Very useful when parked tight against a wall or another car.