It's an absolutely horrible trope that gets used in a way that's completely unbelievable every single time...
There is no way that in an earthquake prone country like Japan that any shelves, cabinets, etc. like those would not be affixed in some manner; especially those at a school!