Arrhythmias can result from numerous factors, including coronary artery disease, electrolyte imbalances, changes in heart muscle, injury from a heart attack, or healing processes after surgery. Lifestyle factors such as stress, smoking, excessive alcohol consumption, or caffeine intake can also contribute to the development of arrhythmias.