The goat was innocent enough to understand the shrewdness of the fox and did as the fox said and helped him get out of the well.
While walking away, the fox said, “Had you been intelligent enough, you would never have got in without seeing how to get out.”