The criteria for diagnosing ASD today are vastly different from those that would’ve resulted in an autism diagnosis shortly after the abolishment of lobotomy, it is hardly surprising the rate keeps going up as you widen the net.
We understood more about various conditions and treatments, so we stopped doing harmful things like lobotomies and refined the definitions on some conditions as needed. Those are not directly related though.