At the end of the cycle of a Pixel model, they are heavily discounted. So much that it's probably close to hardware + development cost. Google probably expects to make a profit from Google One subscriptions, Play purchases, and ads.
By installing GrapheneOS, you are giving them nothing.