People go to hospitals when they have been hurt in an accident. The joke is referring to a musician going to the hospital. The musician played too many "accidentals". An accidental is a sign ( a sharp, or a flat) that is placed near a note. The joke is playing on the word accident.
A musician went to hospital after playing too many accidentals .