Etymology
Today it means: Expressing surprise, affirmation etc. Full definition →
Alteration of catso.
Etymology from Wiktionary, CC BY-SA 4.0.