Tesla's battery is better at doing what it was designed for, compared to coal plant(s) that are better at doing what they're designed for. In conjunction with one another, both technologies work incredibly well.
And in general, things that are made to work well together work better than things not made to work well together. This also applies to things that happen to work well together, despite not initially being designed to.