The HTML living standard explicity forbids putting heading tags inside of table heading tags.
th element content model:
Flow content, but with noheader
,footer
, sectioning content, or heading content descendants.
https://html.spec.whatwg.org/#the-th-element
So what’s up with that? Why does the exercise make us do it, then?