Mike switched Nacho's safe to ensure Nacho's death without casting suspicion over Gus Fring. Nacho represented the only concrete link between Gus and the attempted assassination of Lalo Salamanca, and that's a loose end Fring wanted to be tied.