The problem with batteries is they don't lose weight as they discharge[1]. With fuel powered aircraft the fuel is used up over the course of a flight, so that the average weight of the aircraft is substantially less than the starting weight. This means that as flight times increase the advantage shifts more heavily towards fuel powered aircraft.
[1]: actually they do but it's a trivial amount.