weight gain thats not 'womb weight'

Hey. I am just wondering what makes people gain weight over pregnancy? I understand obviously bugger boobs and the baby and sack etc growing in you is extra weight but does bodily fat/weight gain happen naturally alongside it? Or is change in doet and exercise to blame? Thanks guys x