The source of the shock is most likely the wall adapter that was plugged into the laptop. Unplug the device and touch the USB cable to confirm this. The astonishment should fade.