This is because rice is considered a nourishing food, and eating it on Ekadashi would be balancing one's karma of taking more than one gives. Fasting on Ekadashi is seen as a way to respect and honour God's presence with reverence and faith by abstaining from certain things.