Why do pianos have 88 keys?

A standard piano has 88 keys: 52 white and 36 black. But who decided this number would be the norm, and why? Before the piano was invented, composers wrote a lot of music for the harpsichord, which has just 60 keys. This meant that everything they wrote was limited to the harpsichord's five-octave range.