It is called “heeling” as mentioned below. Actually this happens more than you think. I have seen a boat with a 30' mast clear a bridge with 8' clearance when it broke free from a mooring and drifted under the bridge capsized... pretty f’n impressive.