I've always been confused with these too. As far as I can understand they both mean why...
What's the difference?