Metformin & PCOS?

My gynecologist prescribed me Metformin but I’m not too sure what the original purpose was... I’m treating my PCOS with birth control but she also hasn’t diagnosed me with PCOS yet....

Does anyone know what’s the purpose?