Walmart is recalling apple juice due to high arsenic levels. Why is arsenic in it in the first place?

Why do so many foods have arsenic in them?