Apple got its money by voluntary payment rather than by forced confiscations like the government.
More people are willing to pay for Apple products. The people that are paying for what the government produces are merely funding the folks who just want to ride in the wagon.