It’s a lot cheaper to install one sensor per door than it is to install a motor for every moving compartment and a sensor to see if it needs to be closed and that’s just to make sure every door can be closed. A lot of extra circuitry for something they can just do on the cheap.
If it closed slowly enough you could just measure resistance or voltage of the motor to determine if it’s not moving. The problem is all the other things that you need to do before you can even close a door like shutting a fruit drawer.