If you think it's just because they don't know how, then you're wrong.
I suggest because of their own sense of fairness. Most would not get caught but they still feel it's right to pay a software author for what they have created. Some cultures (currently) have more of this sense than others - e.g. the U.S. more than China.
I suspect a similar reason for why most people don't buy black market goods: pirated handbags or knock-off electronics brands, for example. The quality is perceived as worse, or at least unknown.
Digital media (movies, music) on the other hand are more widely understood to be "exact" copies of the original and so there is less concern about the quality of the illegitimate good, to the point that it isn't considered illegitimate.
Let's say that a piece of software has price p and that you get value v from it.
If v > p, then you will choose to buy it, getting v - p in consumer surplus. If v < p, then you choose not to buy it.
Now let's say that you can pirate the software as well, with chance of getting caught c and punishment if caught d. Pirating the software costs 0. If p > c * d then it's economically rational to pirate it, getting overall value v - c * d.