Chess AIs don't need to develop an understanding of the goal, they're hard-wired with the rules of the game and its goal-states.
As an experiment, try making a chess AI without explicitly giving it the rules of the game and see how it performs.
As an experiment, try making a chess AI without explicitly giving it the rules of the game and see how it performs.