Why do alot of foreigners move to kl?

Like I don't get it

Most Malaysians end up leaving Malaysia due to the terrible wages and living conditions, so why do so many foreigners live in kl?