Answer:
Conformity allows people to feel integrated in society, or a social group. This behaviour is typical of normative social influence, which occurs when people comply to social norms in order to be accepted.
It's possible for someone to not accept an opinion in private, and still comply in public. This is done to satisfy people's needs of affection and integration.