Why do they knock you out for a lithotripsy?

Pain from procedure. Shock waves are typically applied through an interface brought into direct contact with the skin of the flank region on the side of interest. When shock waves are delivered, they can be quite uncomfortable. Anesthesia is needed to keep the patient comfortable, but also to help the patient stay still so that the shock waves can remain focused on the stone to maximize the chances of fragmenting it.