The story
Alluding to shirttails, which were formerly commonly worn by gentlemen. When someone would break into a run, they would rise into the air; hence, one might make "straight shirttails" when moving so fast that the shirttails become horizontal.
Etymology from Wiktionary, CC BY-SA 4.0.