This could be happening for several reasons –
Underdeveloped digestion system
Allergic to milk
Diarrhea – Which is often caused by a bacterial or viral infection.
I suggest, please get your baby checked with a pediatrician. Using diaper is okay, but, the problem is frequent potty. So, please get it checked first.