The trench wasn’t lit from the start because 1) it had a finite amount of fuel, and 2) if they’d lit it from the start, they assumed the wights would just wait for it to go out (having not foreseen the Night King’s whole army ant-like “smother it with the bodies of my minions” strategy).