“Why” in Chinese is 为何 (wèihé).
你昨天为何逃课?
Why did you absent yourself from class yesterday?
Example sentence from Tatoeba (CC BY 2.0).