Maybe he didn't. Gus had good reason to tell the Salamancas it was Hank whether he knew that to be true or not.
Gus told the Salamancas that Hank killed Tuco, but there is no actual evidence that he really knew that to be the case. In addition, there was a strong motive for Gus to tell them it was Hank whether he knew it to be true or not. Consider all the things Gus hoped to achieve in giving his approval for the Salamancas to attack the DEA agent who killed Tuco, and his identification of Hank as that agent:
1) Protect Walt: Walt--whom Gus needed--is protected by focusing the Salamancas' desire for vengence elsewhere. Achieved - The Salamancas forgot about Walt and seemed to prefer going after the DEA agent.
2) Take the Salamanca brothers off the board: The attempt by the Salamancas combined with Gus's warning to Hank created a messy and very dangerous situation for the Salamancas in which they could have been killed, severely wounded, arrested, or identified. Even if none of these things happened, they would still need to leave the US for a long time (perhaps permanently) or at least have their activities in the US hamstrung by the need to avoid law enforcement. Achieved - one Salamanca dead and one maimed, arrested, and left an easy target for assassination.
3) Put law enforcement pressure on the cartel: Any attack on a DEA agent would vastly increase the pressure that US-Mexican law enforcement would put on the cartel, crippling the powers that were threatening and controlling Gus. Achieved - the cartel bosses were shown bemoaning this exact outcome.
4) Eliminate the danger posed by Hank's relationship to Walt: Hank--who is a threat because he is too close to Gus's operation by virtue of being Walt's brother-in-law--was probably even more likely to be killed or severely wounded in the attack than the Salamancas. Even if not killed, a crippling wound could end his law enforcement career and make him less of a threat to Gus. Almost achieved - Hank nearly died and almost had his career ended by his wounds.
Neither Gus's overall gambit nor any of the calculations or machinations that went into it actually required him to know for a fact that Hank killed Tuco. Even if we assume that he did not actually know that Hank killed Tuco, it makes perfect sense for him to tell the Salamancas that he did.