Rinsing the rice before cooking it helps get rid of starch on the surface, prevents clumping and provides a better taste.
You can cook rice without washing it if you want too though. You don't have to wash rice but it yields a better taste when you do wash rice before cooking.