The months aren’t all the same number of days due to the rotation of the moon. Ancient Romans based each month on the time between two new moons, which is 29.5 days. Since this number doesn’t divide evenly into the 365.2421 days that are in a year, the months are always a different length.