Do you pull in front of a semi truck and hit the brakes in your car or try to pass them on the outside of a corner on a downhill?
You did the cycling equivalent of just that.
A tandem is harder to turn and harder to stop than you on your fancy carbon race bike.
Those of driving tandems take care to not tailgate and give a wide berth and don't appreciate people jumping in front of us at the last second.