What is the relationship between ferns and coal?

They are both able to be grown in very hot areas.