I remember my parents washing machine did that periodically (bang into the wall, Sears Kelvinator ) in the 60's If you put a large towel in it.
Newer machine we had (still in 60's) would shut off in spin cycle and a buzzer go off if off balance.
Latest Sears machine we now have (fixed under warranty a year old of a transmission leak) walks all over if an unbalanced load.
Wouldn't have noticed the leak during warranty if not pulling it out during remodeling.
If we not around, it could pull a hose off.
I also thought most modern washers specified to be on concrete and not 1st floor due to flimsy cabinet.