Are you using a ROM? Because Hidden Power type is based soley on IVs, and those dont change through evolution. If you are using a ROM there might be a glitch. And are you 100% sure it was water? Anyway, there was probably a glitch in your game if this happened.