Robots can be used for many things, war included.
Elon Musk and Stephen Hawking Warn of Artificial Intelligence Arms Race
The pair joined prominent researchers in pledging support for principles to protect mankind from machines.
Source: Elon Musk and Stephen Hawking Warn of Artificial Intelligence Arms Race