Subsidy reduces the cost of the deal.
Federal tax credits attract investor equity. State/local loans, tax benefits, land, bonds or other programs may add additional public value. The public contribution exists because unrestricted market financing would not produce the same affordable rents.