Oh, grow up! The OP is entitled to be confused because it's a lot more complicated than the number of weeks in a month.
FWIW, one reason it is so confusing is that we tend to confuse two things: what medics have figured out is a 'normal' pregnancy by looking at lots of examples, and what any individual person experiences.
Until pretty recently, women didn't know they were pregnant until they'd missed at last one period, and we couldn't easily track ovulation. So periods were taken as important information for dating pregnancies. For most women, the date of the last period is a good enough guide to roughly when you got pregnant. Then, you can measure things like the size of the foetus at 12 week, and that's quite a good indicator of how things are going, too.
There is lots and lots and lots of data showing what happens if a foetus is a certain size 12 weeks from the last menstrual period.
However, if (like my DP), you mess up the data by tracking your ovulation and going to a fertility clinic where they inject sperm into your wahoozie, you may feel you can be smug and tell the doctors their dates are wrong. You may even find that, at your 12 week scan, they tell you you are an impossible number of weeks pregnant (eg., they'll suggest your egg encountered sperm a week or two before that was remotely possible).
This isn't because doctors are stupid. It's because big data - data taken from millions of women and their foetuses - is still enormously useful in telling us how a pregnancy works, even if we no longer need to measure from the date of the last period. We're better off accepting that terms like '40 weeks pregnant' are a bit of a medical misnomer, than trying to reinvent the wheel and gather all that data all over again.