Governments exist to take care of their own citizens—that’s their main job. Citizens pay taxes, follow the laws, and contribute to the country, so it makes sense for a government to prioritize their needs. That’s not racist; it’s just how countries work.
If a government tried to treat everyone in the world the same, it wouldn’t be able to meet the needs of its own people. Things like healthcare, schools, and public services are paid for by citizens, so they have to come first.
Also, preferring citizens isn’t about race. Citizenship is something anyone can earn, no matter where they’re from. Calling it racist mixes up two very different things.
It's hard not to break the rules in replying to something like this.