Baby pulling off breast

My 5 week old will nurse for about 20-30 min and then pull away. I will then burp her but at times she will want to go right back to nursing. I wonder why pull away to begin with? Maybe until she decides to sleep. Anyone's else LO do this ?