Exposure to hazardous materials like asbestos or certain chemicals can cause pulmonary fibrosis. It can also result from inhaling bird or animal droppings, certain medications, and radiation treatments.