This is an example of Medicalization of deviance. This
term refers to the tendency to define the manifestations of deviant
behaviors, such as the response to an underlying disease that must be
treated by means of a medical system. That is, the causes are considered at an individual level instead of being considered at a social level. Within these manifestations include mental illness, crime, alcoholism, among others.
I hope my answer can help you.