There are several sources of THP in lambic, not all of which are fully understood. Some THP may come from the Maillard reaction during the roasting of the grain or during the boil, with the latter likely being a more significant source due to the low roast used for most lambic grain and the extended time the wort is boiled. The combination of both pre-fermentation sources above is still likely only a small contribution to the total THP in lambic, as the wort is rarely described as excessively "bready" nor "mousey".
There are also several biological sources, which are likely the most important sources of THP in lambic.In the presence of oxygen, Brettanomyces will produce both ETHP and ATHP from lysine and glucose or sucrose[REF], though the exact metabolic pathway remains unknown[REF]. Further, lysine usually remains in beer after fermentation, indicating that THP production is not limited by lysine availability, but rather some other unknown factor[REF]. Strangely, Brettanomyces cultures that have been exposed to oxygen continue to produce elevated amounts of ATHP after the oxygen is removed, indicating that the presence of oxygen may predispose Brettanomyces to THP production. The early growth of other aerobic yeasts in lambic, such as saccharomyces, as well as the formation of the pellicle, prevents much exposure to oxygen during the primary growth of Brettanomyces from months XXX month ~8 onward, which should reduce total THP production in lambic compared to all-brett beers.
Brettanomyces also appears to metabolize ATHP into ETHP, the latter of which has a much higher taste and odor threshold than the former. This may explain how THP flavors and odors may "age out" of lambic over time.