Myocarditis has many possible causes, like viral and bacterial infections. It can also be from certain fungi, radiation, and some drugs.