The doctors are bound by the law - this does not mean they agree with it!
People who make decisions about keeping loved ones alive have an incredibly challenging and unenviable task.
My girlfriend is a doctor and believes it is not a good idea to keep people alive at all costs (though is often bound by the law to do so).
Sometimes people are so poorly that their chance of any sort of quality of life is non existent and we are just keeping them alive to delay the inevitable. This can often result in considerable suffering.
Its worth giving serious consideration to resusicitation orders on the elderly and weak, giving CPR to a frail old person who hasn't got long anyway can be quite an undignified way to go, bruised and cracked ribs etc.
We understandably don't see this side or understand it. However sometimes its important to trust the judgement of the doctors.