Sometimes they can be sick with bacterial diseases and will die before making it to the butterfly stage.
Check out mrlundscience on YouTube. He has a series of very helpful informational videos, especially for those just getting started raising monarchs.