Modern cars already make it much more difficult to lock your keys in the car than in ye olden days.
And the "did I remember to lock my car" remote-check functionality doesn't seem nearly worth the "now a hacker can remote-unlock my car" tradeoff. It's not like that "did I lock it" check helps prevent a "someone smashed the window and grabbed something out of it" scenario anyway.
It's completely unnecessary.
Modern cars automatically lock themselves when they sense there are no keys nearby, nobody in the seats, and the doors are closed for x minutes.
There are plenty of 2026 and if not already soon to be model year 2027 cars which do not have this feature available at any trim level.
That some cars have it does not mean "modern cars" as a whole category have them.
In fact, my several year older car does have it, yet my several year more modern car does not have it.
Neither of my modern cars have that behavior.