The fox wanted to have a race, and the bear agreed. They decided to run to the biggest tree in the forest. The text states, "One day the fox wanted to have a race. The bear agreed, and they decided to run to the biggest tree in the forest." Therefore, they wanted to run a race.