We develop our attitudes and over time we form habits, of which we usually have little awareness. Not all our habits are helpful and some can be destructive or goal defeating. But, since our attitudes are learned, they can be unlearned.
"A bad attitude is like a flat tyre, you can’t go anywhere until you change it."