There's a lot more info about the automatic lock and unlock feature in the Owner's Manual, including how to disable or change it.
You can have the doors lock either by shifting out of park or when you reach a certain speed. For unlocking, you can have it unlock the doors when you shift into park, or when you open the driver's door.