Most of the comments here are speculative.
The TLDR is that coal plants have trouble ramping their production up/down quickly, unlike natural gas which can do so in minutes. So, if you have a grid that is being thrashed by variable production (renewables), this results in variable pricing and demand for baseload. Coal cannot economically compete in that market (and neither can nuclear, which has the same problem).