Did you bother to read the article on this thread?
The phones they were comparing the 4.7" iPhone 7 against were all at least 11% larger in interior volume capacity than the iPhone 7. . . which means they had ROOM for twice as large a battery. Try comparing the iPhone 7 Plus, which is the phone they ACTUALLY compete against and see which one lasts longer!
The dimensions actually show of the show the LG-G5 has 27.7% more volume, and the HTC-10 a 5.2" Android phone's it has even more volume at 41%, than the much smaller dimensions of the 4.7" iPhone 7 does! That's a LOT of volume to stick a bigger battery in which will have more capacity.
If you compare an Android phone with a 4.7" screen, they have WORSE battery life. . . if the case and weight are at all similar.
The test was not comparing equivalent sized phones at all. The test should have been those three Android phones against the Apple iPhone 7 Plus.