Etymology
Today it means: You're welcome, intensified. Full definition →
By analogy with thanks a million.
Etymology from Wiktionary, CC BY-SA 4.0.