Cognitive dissonance theory suggests that individuals experience discomfort when faced with conflicting beliefs or behaviours related to sex. This discomfort can motivate individuals to change their beliefs or behaviours in order to reduce the cognitive dissonance and maintain consistency.