What is the meaning of What_for?

For what purpose.

For what reason; why.

An unspecified punishment or rebuke.

Source: wiktionary.org