From haapt- (“main”) + Saach (“thing”), after German Hauptsache (16th century).
Haaptsaach f (plural Haaptsaachen)