History of the Piano

The piano was invented around 1700 by Bartolomeo Cristofori in Florence, who built it as a harpsichord that could play both loud and soft. Its original Italian name, gravicembalo col piano e forte, is where the instrument's name comes from. Its hammer mechanism let players control volume and expression in a way earlier keyboards couldn't, and by the 1800s makers like Steinway had refined the modern grand piano's frame, strings and action into the instrument we know today.
That expressive range is exactly what composers from the Classical era onward needed. Mozart and Beethoven wrote for the piano's dynamic control directly, and Beethoven in particular pushed the instrument itself, demanding bigger ranges and stronger frames as his music got more ambitious. That is part of why piano technology and piano composition essentially evolved together through the 19th century.
The electronic keyboard followed in the 20th century, putting that same expressive control into a far more portable, affordable form, and today the piano remains one of the most widely taught instruments precisely because it makes music theory visible. You can see a scale, a chord and the relationship between them laid out in front of you in a way no other instrument shows as directly.