It was because the Patriots had Skilled Military leaders (i.e : George Washington)
Back then, the British Army had a far more numbers than the Patriot ( 8 million: 2.5 million), More advanced technology, and better war supplies. The Patriots held an advantage over the war because of their brilliant military tacticians