The word beaner was a racial term to racially discriminate against indigenous and brown Mexicans because of the color of their skin. This word was used against indigenous and brown Mexicans who worked on the farms that white people would racially call "bean eaters".
"Look at that beaner working in the farms"