Why do some "months" have 5 weeks?

Nira • Wifey.Mommy.Happy
I don't get it..........how do they determine why some months have 4 and others have 5 weeks?