Myocarditis is rare, but when it occurs, it is most commonly caused by an infection in the body. Infections from viruses (most common, including those that cause the common cold, influenza or COVID-19), bacteria, fungus or parasites can lead to myocardial inflammation.