OP here. Mystery solved. The car had to go in for a recall so I also took in all it's quirks for answers. The answer to the car locking itself with key fob in the car:
"Vehicle key is designed to not broadcast signal if no movement is detected after a certain period (safety design so thieves can't intercept signal with one's keys inside the house to open/drive away vehicle). For this reason when key in purse is not detected."
Thinking back to the incident, I was puttering around and didn't realize I had left the purse, with the key fob in it, in the car. Car locked itself. Previously, I because the doors are programmed to only open the driver's door when exiting the car, always realized immediately that I forgot to unlock the other doors to retrieve my purse.
So my backup plan is to always either leave the driver's door unlocked until I retrieve my purse from the back seat or put my purse in the front in it's designed cargo space. Having the phone or the credit card thingy act as backup keys won't work...they're in the purse along with the key fob
.