Haem is ubiquitous, abundant and necessary for energy metabolism. Most bacteria have a haem biosynthesis pathway, but nevertheless, since haem is a major source of iron (an essential metal), microbes take up exogenous haem to retrieve iron.
Source: wiktionary