This, I think, is a little better:
- Why didn't you leave your house earlier so you wouldn't have to rush?
Otherwise, your sentence is fine.
"why wouldn't you leave your house earlier?" is a little different. It means something like why did you refuse to leave your house earlier? It is more like criticism for what the speaker considers willful (recalcitrant) behaviour.
- For Teachers