What does NHS compensation pay for?

Thomas Hord and his family were given almost £8m in compensation by the NHS after he was starved of oxygen during birth.

But what does the money pay for?