When he was making weapons and machines, he made a vow that he should serve the great human beings (dignitaries). 'If there is my life I need to protect them with weapons.’
Read this post on mithsofhinduism.blogspot.com