I don't think it is quite as much as anime being racist, as japan (like most south east asian countries) being extremely xenophobic and nationalistic. Their culture is nothing before family, work, or country; everyone not part of those is inferior to you (however there is a live and let live...