Robot was originally built to protect the Robinson family and maintain the ship, but after his body was destroyed by space raiders, he was rebuilt to be better than he ever was by Will Robinson. Now instead of just shouting out "Danger, Will Robinson! Danger!" he was able to do something about it.
As Seen In: Lost in Space (1998)