Origin of “Scot Free”

So, we know that Scot Free means to get away without consequences. But where did it come from? In Old English, a scot was a payment, and later a tax. So, to go scot free means to go without tax or payment–not as I earlier thought a really racist way to say they were getting away with not having to deal with a Scotsman…