Why does the keto diet cause flu-like symptoms?

The ketogenic diet can cause minor, short term symptoms, such as nausea, fatigue, and headaches. People sometimes call this the keto flu.