Pulling off when breastfeeding

Brandy

My 7 week old has started pulling off while eating. Then he gets mad because he’s still hungry. Get him back on and he does it again.. and again. My doctor said it’s because he gets distracted but he’s not looking around at anything when he does it. Has anyone else experienced this or know why he’s doing this?