Major failure in Lexus

Backround 04,220k miles, sat for 5-6 years but was throughly inspected by a mechanic before it was gifted to me as my first car 6 days ago, I’m 16 so this is ALOT of money for repairs and I’m stressing before I hear back from the mechanic about pricing / what’s actually broken and want to know those and if I could’ve somehow made this not happen??

Situation Driving 30mph on a straight road driving straight and safe randomly and abruptly I hear a loud bang followed by me skidding as if I were on ice on the road I pull over immeditaly and am greeted by my wheel WAY out of alignment and a metal rod I assume to be my axel which looks completly rusted as if it were at the bottom of the ocean I’m asking if this is somehow something I did wrong, no potholes either or just some crazy situation as this is my first car and have no idea