The Origin of Star Formation Gradients in Rich Galaxy Clusters