Can someone explain the restricted area to me

MrSquilliam Celtics12:38 am Sat Aug 1 EDT Removed

What made it a blocking foul on Marcus Smart instead of a charge on Giannis Antetokounmpo?