Both naturally from rocks and soil, and latent arsenic from decades of arsenic pesticide use. Arsenic pesticides have been banned for a while, but they’re still in the soil.
Depends on your definition of "process", but parboiled rice can use the same arsenic contaminated groundwater and can raise the arsenic content depending on the process used, whereas mechanical hulling reduces it.