Cooking responds to your most basic instinctive call for survival. This situation reminds you of your low level of survival and what you care about, which can have a calming effect.