Every action we take is a matter of choice. There are always dozens, if not hundreds, of other things that we could be doing at the moment.
Everything we do we do to meet some physical or psychological need, so when we end up doing something that we do not really want to be doing right now, it can be helpful to ask “what deeper need is this choice satisfying right now?”
Stop and think about what needs your current actions are satisfying.
What other ways can you satisfy those needs?
What other needs are you subordinating to the ones you are currently satisfying?
How do you feel about that?
What are you going to do about it?
What you say is very true, but requires some considerable self knowledge and confidence to dig into such basic motivations. Often our inner self will have pretty solid barriers which prevent our conscious access to some of the most unpleasant or unacceptable reasons for the actions we take. Those barriers have a primary purpose of allowing us to stay fairly stable, and exposing them seems to threaten our well-being. It can be extremely traumatic to go through them, and usually some second party help is required, but the process has immense rewards, once the trauma is worked through and accepted. The danger of self-implanting false but acceptable reasons is a prime reason for second-party involvement, using someone skilled in this process. False rationale is at least as bad as whatever it replaces, in terms of its effects on our behaviour and quality of life.