PCOS: serious question. Not bashing or judging!!

Why is it that most people with PCOS or ENDO are overweight? I really DO want to know. I'm not trying to cause a big scene for asking this. It's something that I've always wanted to know. Also, how are you diagnosed for PCOS & ENDO? Do you just know, or do you have to go to a doctor & get tested?