Where did the word shoo come from

The word “shoo” has a curious origin, tracing back to the early 19th century. It likely stems from the Middle English “shoo,” an exclamation used to drive away animals. Today, it’s a gentle command, echoing our desire to shoo away distractions and nuisances.