Good point, and worth noting.
In the Hadith, Muhammad tells his followers to call people to Islam before waging war against them:
Fight in the name of Allah and in the way of Allah. Fight against those who disbelieve in Allah. Make a holy war
When you meet your enemies who are polytheists, invite them to three courses of action. If they respond to any one of these, you also accept it and withhold yourself from doing them any harm. Invite them to (accept) Islam; if they respond to you, accept it from them and desist from fighting against them
.If they refuse to accept Islam, demand from them the Jizya [the tax on non-Muslims specified in Quran 9:29]. If they agree to pay, accept it from them and hold off your hands. If they refuse to pay the tax, seek Allahs help and fight them. (Sahih Muslim 4294)