Did I do anything to cause this condition?

Maybe, but don't beat yourself up just yet. An arrhythmia has several possible causes. Some are lifestyle-related, some are not. Talk to your doctor about the clues to your specific case.