Most washing machines have a timer that prevents you from opening the hatch just after the washing cycle ends. Instad you must wait for the timer to go off, usually a minute or two, before you can open the hatch.
Why? Would letting the user open the hatch immediately after washing ends pose any safety or other issues?
My best guess is safety, if you had a heavy load in there the momentum could keep the drum spinning much longer than normal. I’m sure they could add a sensor to check, but that’s just an extra cost. So rather than allowing you to open the machine while it’s still spinning and possibly injure yourself reaching in, they keep it locked for a few more minutes.
It’s safety for sure. Mine is pretty new and I can tell that it has a sensor for the drum rotating - it doesn’t unlock until movement has stopped. You could really mangle a finger if you got it caught between the moving drum and the stationary housing. The removed is that mine is energy efficient and it spins easily, so a heavy load will keep spinning a long time.