It's both: people genuinely believe in virtue, but moralizing also signals norms and pressures others to conform.