As the Talmud itself says, the episode of the rebellious son never happened. So why did God include it in the Torah? 

Every morning a Jew should wake up and feel fortunate to have the Torah and the opportunity to observe its commandments. We remember this even more so on Shavuot.

This moving story of a Shabbat miracle teaches two lessons - one spiritual, the other on physical safety.