There are various reasons for it- 1. If you did not use the correct rice to liquid ratio. 2. You probably opened cover too many times during cooking to take a peek. Opening lid will cause steam to escape and rice will not be cooked perfectly. Allow the steam to do it’s magic, cook rice nice and fluffy! 3. Resting rice after cooking is done is another crucial step. It’ll help rice finish cooking and turn soft and fluffy. If all instructions are followed correctly, garlic rice will be cooked to perfection, every grain cooked perfectly and no rice will get stuck to the pan at the bottom.