There are a variety of insects that are attracted to dying and recently dead trees. If wood dries normally, these insects often survive, even if the wood is cut up for firewood or processed into lumber (assuming they weren't in the direct path of the saw). These insects then can be found in homes where firewood or lumber used in remodeling or construction projects are brought indoors.