How does Google sell the Nexus 4 for $300?

The Nexus 4 is suppose to be a flagship, right? Then, how does it sell for $300-$350? The Lumia 920, Galaxy S III, iPhone 5, Windows Phone 8X, etc are all around $600+ unlocked. Can someone explain why other companies' flagships are so expensive in comparison.