Why don't doctors give adequate medicine to help with the pain for 1 of the most painful surgeries?

I've read a lot about the hemorrhoidectomy surgery, both here and in the YouTube Vlogs along with the comments in the YouTube Vlogs. I might have to get this surgery one day, and it scares me, it really does scare me. My question is, if this is one of the most painful surgeries out there, why do doctors not get something for the extreme pain for the first 2 weeks or so after the surgery? For example, I read on this site that the doctor can give you an extra cream for your butt when you initially do the surgery, to help it not hurt so bad. I think the poster said it was $500 extra for that cream or something and it's (healing) effects lasted for 3 days or so. Why can't they prescribe that cream for 2 weeks? Or why can't they prescribe morphine for two weeks? Obviously morphine for 2 weeks wouldn't be healthy but surely it would be better than the pain I read about, with some folks (who have had experience giving birth, no less) saying that it feels like "knives twisting around in your bottom" every time a bowel movement happens. From what I have read it seems like the prescription painkillers are pointless, in that they make the patient feel "out of it" or "loopy in the head", but they don't really touch the pain. Surely, there's got to be a better solution than what the doctors have been giving out to patients for the unbearable pain of this surgery for the past few decades, no? I'm just wondering what everybody's thoughts are on this. It seems that it's always the same story - The doctors underplay how painful the surgery is, and then the patient suffers because they don't have anything adequate enough to manage the extreme pains when the spasms start happening after a bowel movement.