Supply and Demand.
Imagine if there wasnt a hard cap in the NFL. You would have crazy over the top contracts for franchise qb's especially since owners in football are often billionaires in the 7-15 billion dollar range and aside from Ballmer and Paul Allen, no NBA owner really is.