Musicologist: Classification of a musical instrument depends on the mechanical action through which it produces music  So the piano is properly called a percussion instrument, not a stringed instrument
Even though the vibration of the piano' s strings is what makes its sound, the strings are caused to vibrate by the impact of hammers
It is correct to classify the piano as a percussion instrument rather than as a stringed instrument.