Allah has given permission to fight to the believers who are fought by the idolaters, due to their being oppressed by their enemies. Allah has the power to help the believers against their enemies without fighting. However, the wisdom of Allah required that the believers be tested through fighting the disbelievers.