There are some settings related to that "behavior". Check if you have Auto unlock when parked or auto unlock when the vehicle is turned off selected. The driver's door might be unlocking when you enter based on these settings.
As for the passenger door locking itself, that is part of the safety...