If boiling water kills most bacteria, then why isn't it bad if you drink the dead bacteria?

Like if you were stuck with drinking lake water when camping or something, would the water still be safe after boiling? The bacteria is still in there and it just sounds nasty...
Kind of like taking a bath...sitting in your dirty water and reusing it to wash your hair :/
8 answers 8