One reason is that you might have added too much water. Make sure to use the correct amount of water and use the same cup to measure both the rice and the liquid. Also make sure the rice is dry (and well drained) before cooking.