"until the captive first-born": Now what sin did the captives commit (that their first-born should be killed)? So that they not say (if they were spared) "Our god brought this catastrophe upon them ([the Egyptians] for incarcerating us). Awesome is our god, that stood up for itself! Awesome is our god, who shielded us from this punishment!"
Including Prisoners Locked in Egypt's Dungeons
Mekhilta Tractate Pischa 13:7