Ready action is not the same as Reaction.
Ready action is an action you take on your turn, Reaction is not, it is something you take as the result of a trigger which allows it (in this case the trigger condition from Ready). You cast the spell on your turn with the Ready action, you release...