I think it is sub-consciously related to the fear of missing out.
If you miss out on a trade that you then see you would have been right had you taken it, this creates even more bad behavior.
You need to develop a state, where you are able to trade without fear or hesitation (I think Mark Douglas said it). And I've overtime found it to be very true.
Fear of being wrong, fear of missing out, fear of your winner turning into a loser & so on. You want to be able to trade without any of these fears. So, every trade is just a trade, and you are not expecting anything out of it, other than an outcome, which will be a win or a loss.
You don't know what it will be for any particular trade. Your job as a trader is to execute based on your set of rules without expecting anything from a trade.
In order to do develop the right habits
a. start by creating very rigid set of entry & exit rules, follow them exactly as they are.
Even if you believe sub-consciously that this trade might be a loser, but your rules say to enter, you must do it.
b. Take the next 20 trades exactly as per those set of rules. If you find yourself just wandering & breaking the rules, start again.
For most traders, 20 trades will re-enforce the discipline to do that same thing over & over.