Trying to understand how and why people might offer justifications, Leon Festinger and James Carlsmith conducted extended research, and an experiment which is now a classical study, about the state of having inconsistent thoughts, beliefs, or attitudes and how they relate to behavioural decisions and attitude change.
The following documentary shows footage from the original experiment, followed by Festinger explaining the implications of its results: