Yep boiling the wort kills bacteria, viruses and even fungal ickies. Hops and even before that other herbs have some antiseptic quality so kept the ickies out of the beer.
Unfortunately cirrhosis takes a long time to manifest so there was no evolutionary pressure to breed it out of the human line. Beer for bfast, lunch and dinner and for any drinks in between must have contributed greatly to early death but did not effect the production of successful offspring.
They didn’t live long enough to develop cirrhosis or many other diseases. OTOH, they could die from bug bite or a splinter.