My car tells me how many miles I have left by basing its estimation on my consumption over the past 30 miles. It has been pretty accurate.
If you always drive your car in the same manner then sure, you'll probably have a reasonable estimate. But similarly if all you do with your computer is browse the web, you'll also have a predictable battery remaining estimate. But while many people do drive fairly consistently, your usage of your computer probably has a lot more variety in terms of energy impact.