Pixel's goal is to be an iPhone competitor. This is reflected in its pricing and product design. Nexus was for Android enthusiasts who wanted the stock experience. I think in their own words it was "meant to showcase the best of Android."
Plus Nexus was available to buy. I've had several Nexus phones, but Google doesn't want to sell Pixel phones in my country.