There are three main sources of heat in PCB: heat from electronic components; heat from PCB itself; Heat from other parts.
Among the three heat sources, the heating from electronic components is the largest, followed by the heat generated by PCB board, and other heat from the outside based on the overall thermal design of the system.