The reason I’ve heard repeatedly is that distilled water isn’t just harmful because it doesn’t provide minerals, it’s that it strips needed minerals from your body.
I don’t know the exact mechanism and can’t be bothered to look it up, but there was a WHO study years ago that reported this finding.