There are a few reasons. It could be that the skillet was too hot or your liquid was too cold, the fat to flour ratio is off, or it wasn't stirred constantly while cooking. Don't get discouraged; keep practicing, and you'll get it right.