It’s primarily private insurance (at least in the US) that drives that. The doctor can prescribe something and then a “doctor” who works for the insurance company can take a 10 second look at it and deny it outright in favor of a more profitable treatment.