The story
Respelling of ass representing a pronunciation with elision of the final consonant, which can occur in African-American Vernacular English. Later non-African American Vernacular English uses are perhaps derived from, or influenced by, -ahh (“-ass”). Equivalent to ass + -h.
Etymology from Wiktionary, CC BY-SA 4.0.