This is social engineering. The government wants you to give to charities as it makes for a good civil society. They wanted people to buy homes so they gave a tax deduction. They wanted to have companies buy more equipment and by depreciation they encourage them to buy more and replace older machinery.