Cīmon some of you.
Unless there was a doctor onboard who pronounced him dead while still in cruise, you should be happy and commend the captain for such a decision. (If rwy, wx and hospital are/seem suitable...)
He had enough fuel to fly back to a refueling airport anyway.
Luckily most of us donīt think about profits/costs in situations like this.
It could be you or me some day, while we still have a chance...