Why does my vagina smell just before my periods?

Hormonal fluctuation. If the smell varies throughout the month and consistently changes depending upon your time of month, then it's most likely due to hormonal fluctuation, rather than sexually transmitted diseases/infections, which would lead to persistent alteration unrelated to time.