Such a robot is very similar to an animal because it was built very similar to an animal.
Not only there are legs instead of wheels, but also the information processor is built similar to a brain.
The software engineers had to hard code concepts such as "how to learn from experience",
"how to simulate myself", "how to dream", "what are my goals". The rest is learning, as in any animal.
So it makes sense to imitate, if possible, every part of the animal.
The brain is a part of the animal, obviously. So it makes sense to imitate this part of the animal, too: self learning algorithms are the better imitation of brains, compared to hard coded procedures.
A special case are humanoid robots: they are optimized in fitting into a human environment such as kitchen, hospital, etc. Because their measures are similar to the measures of human, there is no (or little) need to adapt the environment to make it accessible to humanoids. If the robot is equipped with hands, then a cooking pot does not need a handle for human and another for robots. For the same reason, humanoids are well suited for teaming up with humans.