That use of "what for" is part of the vernacular in Michigan. And I like Doc's surmise of its origination.