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.
While true, unless it gains enough speed it might still not properly close by itself. And the door can also be blocked. An angled door will also be a bit heavier to open and more annoying to use. It’s not a perfect solution, even if it is helpful.
Maybe an always tensioned hydraulic like on a screen door? I realize this is just self closing and not close on demand, but seems like it would get the job done.