Horny before period?

Before my period starts I notice I get more horny. I try not to masturbate because it makes me feel guilty but I usually end up doing it to relieve myself. Why does this happen before my period?