Endometriosis significantly raises the risk of developing type 2 diabetes, especially in premenopausal women without obesity.