Tablets are often higher end devices and can be sold at premium prices which nets everyone up and down with the supply chain with solid profit margins.
That said, battery life is nowhere near as good as that of the Galaxy J5 or Galaxy J7, both of which are higher - enddevices in the series and benefit from battery capacities often seen on flagship smartphones.