On the contrary: "cruel and unusual punishment" is Constitutionally prohibited in the US. Execution itself hasn't been ruled out by this, but it is not allowed to cause extreme pain. The dependence on certain drugs seems to be because of "conservatively" designing the execution protocol to a) consistently cause quick death, and b) not be painful, for instance by causing unconsciousness.
There is evidence that some convicts were conscious. On the other hand, I skimmed some euthanasia protocols[0], and to a layman at least, they appear similar to the ones for execution in the US, so I'm not sure you're correct about it being pleasant for the euthanasia patients. Perhaps the euthanasia one I read is outdated and they have better ones. I think we're less likely to hear about possibly-painful euthanasia experiences as we are about possibly-painful executions, though.
[0] https://en.wikipedia.org/wiki/Lethal_injection#Euthanasia_pr...