Addiction can occur from thought patterns and habits
It's about habits, it's true. A person who has a habit of managing things very carefully will never let themselves become addicted to gambling because they will manage their bankroll and their gambling activities in a way that won't make them addicted to it but it will just be an extra activity for them which won't matter if they don't do it but if they got time and funds, they can go ahead and play a few games without the intent to earn money through it.
Most people get addicted to gambling because they are not disciplined in general in their lives or with their activities. They do things without any proper schedule or timetable, and they barely have money management skills so that they can have a separate budget for their gambling activities.
So, someone who can't decide on a budget for their gambling and follow it will barely be able to prevent themselves from getting addicted to gambling.