The story
Expanded form of jack of all trades, which originally was sometimes used as a term of praise. In the 21st century this phrase has itself been (rarely) expanded to a couplet: : Jack of all trades, master of none, : though oftentimes better than master of one.
Etymology from Wiktionary, CC BY-SA 4.0.