That is a design patent, a bit different from a technological patent, and although the 'apple patented a rectangle' is how that was always presented, but the patent used in that part was a very obvious rip off by google on the whole design of the iPhone, compared to where andriod was before the release. If I had been them I would have done it too, when you know google are just going to copy anything you try to make.