junk food helping nausea?

I've had excessive nausea since early in my pregnancy (week 8) and my doctor told me to eat junk food for 2 days and see how I feel. I took full advantage and I feel a ton better! Does anyone know why this works? I'm very curious!