Spokane is a very sprawling city. It’s the second most populous in Washington but a third the density of Seattle. Including the “metropolitan area” of both Spokane is a seventh as densely populated.
A bit of both but the root is that land is comparatively cheap. Building out is economically incentivized over building up. Municipalities can put their thumb on the scale by raising land taxes based on acreage but zoning restrictions are the actual solution (and these tend to be unpopular because the immediate effect is that development costs rise and bring rents with them)