The story
Probably derived from the previous term "horseshedding," meaning to take a person privately (such as to a horse shed or woodshed, separate buildings away from the house) for private cajoling or reprimand.
Etymology from Wiktionary, CC BY-SA 4.0.