I used to have that feature on my Mk3, and it was linked to the alarm, so when you set the alarm, it would lock the doors, wind up the windows and shut the sunroof.
It's a bit of a pain in the summer if you wanted to leave your car parked outside your house with the windows open, but locked.