The original (ancient) formulation arises from the story about how Epimenides, a native of the island of Crete, in the heat of an argument said: “All Cretans are liars”. And he heard the objection: “But you yourself are Cretan! So are you lying or not?”
If we assume that Epimenides was telling the truth, then it turns out that he like all the Cretans is a liar. Therefore he lied. If he lied, then it turns out that he, like all the Cretans, is not a liar. Then he told the truth.