^^ This.
If you stamped hard on the brakes then you will have transferred weight to the front end which in effect will have lessened rear wheel traction, ...this will have been exacerbated further if you were turning at the same time, going over a rise in the road or if your tyres are worn/wrong pressures/mismatched etc.
Lessen learnt I'm sure and new pants on order I take it.