As others have pointed out, this is a nuanced question.
The dams were not built to produce power, they were built to protect the area. The power generation was done _because_ the dams were there, not the other way around.
That is, even if the power wasn't wanted, this disaster would have happened, so from that perspective, this is not deaths caused because of power generation.
In the other power generation cases, the object causing the deaths is _only_ being created to create that power. Without that power need, the object would not have existed.
For example, it is possible to generate energy from tidal waves. However I don't think that anyone would suggest that means that all deaths from a Tsunami should be attributed to tidal wave power generation.
The parallel here is that this (series of) dam(s) was built to control nature, and failed spectacularly at doing so. Is that the result of the power generation?
There _are_ dams that are build primarily for power generation, these would make sense to include in the stats. If the dam failed because of a malfunction in the power generator, that would make sense to include in the stats. But that does not appear to have been the case here.