Why is it that both Purim and Chanukah the heroes of their stories ended up losing out? That is Esther had no Jewish descendants as she married a non Jew (though her son was Jewish according to Halacha) but her son did not marry a Jewish woman so his children were not Jewish. Meanwhile Hamans children Taught Torah in Bnei Brak. As the Gemara States:
"מבני בניו של המן למדו תורה בבני ברק"
סנהדרין צו ע"ב
Then The Maccabees were killed out, and the Gemara says whoever says I am from the Children of the Maccabees is a slave or a liar As the Gemara states:
כל האומר מבית חשמונאי אני, או שהוא עבד או שהוא רמאי
בא בתרא ג, ב
The Heroes are the Biggest losers and these are our Rabbinic holidays why is this and what is the connection?