the answer has been given umpteen times ,here in this forum and elsewhere. chances are that u r raising this question merely for raising it, but I will not disappoint u.
Quran came on Prophet PBUH, time to time. These particular verses came at a time when muslims have suffered 13 yrs in makka , migrated twice to abyssinia, and finally to madina, in their quest to live with peace. but enemies followed them in madina, in an attempt to finish muslims. the attacked madina.
muslims till now had been told to observe patience from ALLAH, but these verses came to order them to fight enemies of muslim.
You will argue that muslims were shrewd to wait till they outgrow in number, ...so let me clear muslims could summon 313 odd people...including few adoloscents who insisted to go on war.
Resulting battle of Badr saw muslims as victorious over 1000 enemies.
The verses in question belong to special occasions of war, rather than being a general guideline.. if u want to study kuran, you will have to study wholistically rather than from here and there. and ofcourse a bias less approach is required.