He was ignorant because he read a biography of Muhammad written by an arab. Maybe if he had read
The Life of Muhammad written by Edward, Canon Sell published in 1913 in Madras India, he would have acted differently.
Link to works by Edward, Canon Sell.