People say 'That's life' after an unlucky, unpleasant, or surprising event to show that they realize such events happen occasionally and must be accepted. [feelings]
'It never would have happened if Florette had not gone back for the book.'—'That's life.'
Synonyms: that's the way things are, that's it, that's the way the cookie crumbles [informal]