The robot was programmed for a Mars exploration mission. It cost six billion dollars to construct.
The Richie Rich/Scooby-Doo Show
After Shaggy Rogers, Scooby-Doo, and Scrappy-Doo accidentally board a Mars rocket, they find themselves chased by the mission robot, who mistakes Scooby for a soil sample. Scrappy dismantles it into a rover vehicle. After they are warned by the scientists on Earth not to damage it, Scrappy re-assembles it "good as new," except that he reprograms it with a Scrappy-like personality. (Way Out Scooby)