One historical note that explains why they are as prominent as they are on grands: they relate to how the strings are laid out.
Modern pianos use overstringing, where the bass strings cross diagonally over the others to get more length into the case. That arrangement puts the frame and the plate in particular positions, and the key blocks sit in the space that arrangement leaves at each end of the keyboard.
On older instruments with straight stringing the proportions are noticeably different. If you look at a square piano or an early upright the blocks are there and much narrower, which is a nice illustration of a part whose size is set by something happening entirely elsewhere in the instrument.