Even if there is not any nitric acid left on the foils, there could be nitrate salts left on the gold foils, like copper nitrate, then when you add acid HCl some of the hydrogen from the acid can act to convert the copper nitrate salt into a little bit of nitric acid mixed with the HCl, basically making a type of poormans aqua regia, which can put some of the gold into solution.
Incineration the high temperature can decompose the salts of metal and acids, driving off the acid portion of the salt as gases, in this case the nitrate salt of the copper nitrate on the gold foils will decompose to NOx gases, mostly consisting of NO and NO2 gases, basically converting the copper nitrate to a copper oxide (which when the HCl acid is added will not dissolve any gold, but the HCl can easily dissolve the copper oxide).