Maybe now, but it hasn't always been so. Attitudes change. If you're lucky enough to chat with someone in their 90s about dying, you may hear stories of how doctors used to "help people on their way". In other words, casual euthanasia was quietly accepted and expected.
Not quite what GP is describing, but it illustrates the point.
My mother, long since passed, was a registered nurse (and also carrying far more empathy than most human). She explained morphine pushes and “slow codes” (taking your time so people who wanted to die could) to me in my teens (early to mid 90s). Good terms of art to know when end of life creeps up on you.