Age: Children are more likely to pick up new accents than adults, simply because their brains are more flexible and adaptable. This is why many people who immigrate to a new country as children end up losing their native accents, while those who immigrate as adults may retain their accents for much longer.
Exposure to other accents: The more you are exposed to other accents, the more likely you are to pick them up. This is especially true if you are in a situation where you need to communicate with people from different language backgrounds, such as in a workplace or school setting.
Motivation: Some people are simply more motivated to lose their accents than others. This could be for a variety of reasons, such as wanting to fit in better in a new country or wanting to improve their job prospects.
Personality: Some personality traits may make someone more likely to lose their accent than others. For example, people who are more outgoing and extroverted may be more likely to put themselves in situations where they are exposed to other accents, and they may also be more motivated to learn new ways of speaking.
Of course, there are also some biological factors that can contribute to whether or not someone loses their accent. For example, some people may have a stronger "accent bias," which is a tendency to perceive certain accents as being negative or inferior. This can make it more difficult for people to learn new accents, as they may be more resistant to changing the way they speak.
Ultimately, the question of whether or not someone loses their accent is a complex one that depends on a number of factors. There is no single answer that will apply to everyone.