When litigation fails, why do some patients avoid paying your costs?

I am often asked why MDOs sometimes resolve medical negligence claims in favour of their doctors but on the basis that each party pays its own legal costs.