Why was a rebellious son stoned and hung on a tree in Israel?

A rebellious son was stoned and hung on a tree as a public spectacle to show how Israel dealt with such individuals and to prevent crime.

Watch the Teaching: Christ Redeemed Us From the Curse of the Law Explained