Why Does Draft Beer Cause Headaches?

Draft beer is served in bars and restaurants from a keg instead of a bottle or can. It’s cold and tastes great but why does draft beer cause headaches?