Giuseppe Lombardo/EyeEm/GettyThough steeped in controversy, some think the first part of this phrase relates to anti-Semitic demonstrations that started in Germany in the 19th century. Germans cheered "hep hep," a German herding call, as they forced Jews from their homes across Europe, according to Cracked.
Alternatively, others believe that the term didn't originate as a racist phrase, but instead evolved to have racist usage.
Just to be safe, we can easily avoid the first two words. "Hooray" conveys just as much merriment as the full version and comes from hurrah, a version of huzzah, a "sailor's shout of exaltation."