Sounds like your first lock was you pushing the lock lever when you opened the door
Sponsored

I still lock my drivers door by accident, maybe every other month. I go in through the back door to get back in.Your 1st lock was you pushing the lock lever when you opened the door. Yes, really.
Why it was only your door.
Careful with that - find all sorts of threads on accidentally doing that.
2nd lock was keyless entry auto-response it's being discovered for MY25 - different than prior MY's.
If you leave keys in truck, running or not, and get out - it assumes you made a mistake and protects you by locking the doors after a time limit.
Here's a tester's thread. Pages 1 & 2 the useful ones mainly.
https://www.mavericktruckclub.com/forum/threads/i-can-lock-my-keys-in-the-car.64947/
Please share your tale there, mainly part about it not running.