Wrapping the salmon in foil traps all the moisture inside, thus, enhancing its flavor more. And since salmon has delicate meat, the foil prevents the salmon from burning or browning too quickly while cooking. The easy clean-up is just an added bonus.