We say at the Seder:
רָשָׁע מָה הוּא אוֹמֵר? מָה הָעֲבוֹדָה הַזּאֹת לָכֶם. לָכֶם – וְלֹא לוֹ. וּלְפִי שֶׁהוֹצִיא אֶת עַצְמוֹ מִן הַכְּלָל כָּפַר בְּעִקָּר. וְאַף אַתָּה הַקְהֵה אֶת שִׁנָּיו וֶאֱמוֹר לוֹ: "בַּעֲבוּר זֶה עָשָׂה ה' לִי בְּצֵאתִי מִמִּצְרָיִם". לִי וְלֹא־לוֹ. אִלּוּ הָיָה שָׁם, לֹא הָיָה נִגְאָל:
The wicked son - what does he say? “What is this work for you?” For you, and not for him. Since he removed himself from the community, he has rejected the foundation. And also you, blunt his teeth and say to him: “Because of this did Hashem do for me when I left Mitzraim.” For me, and not for him; if he was there, he would not have been redeemed.
What if the son didn’t know any better? If he was brought up this way, rather than him making a conscious decision to reject Judaism, would he have been redeemed from Mitzraim? Put differently: did Hashem only redeem those deserving, or did He simply not redeem those who were undeserving?