Intermittent fasting

What is the reason doing intermitten fasting, for better metabolism or to lose weight?