Answer :

Nathan filled the knothole in the tree to prevent Boo from giving the children gifts. To trick the children, he told them the tree was sick and the knothole needed to be filled.