This question already has an answer here:
Another question that bothers me: when muggles had big problems and wars going on, did the wizarding world interfere?
Did they help or interfere with the muggles in the world war or even in wars earlier than that? Against Napoleon or in the war against the Roman Empire? Couldn't they prevent the wars and battles?