“Scot” is a Scandinavian word for tax or payment. “Scot free” just referred to someone not paying taxes. So, if you don’t pay taxes you’ll be getting away scot free, in the literal sense. It’s unlikely that you’ll get away from the government scot free.