It cannot be due to Raman scattering because $1$ in $10^7$ photons are raman scattered. It cannot be rayleigh scattering because rayleigh scattering of infrared radiation is very low due to the inverse dependence of scattered intensity to $\lambda^4$. It cannot be due to molecular absorption of the photons since a single type of molecule cannot absorb every frequency of infrared radiation because the vibrational transitions can happen from one vibrational mode to the next vibrational mode, also the vibrational modes are unique. What could the answer be?
In the case of conducting objects, it is because free charge redistributes to diminish the electric field, up to the so-called plasma frequency of the material (metal reflects light and infrared, but not X-rays). In the case of nonconducting objects, it is because each atom can become slightly polarized (the electron cloud can change shape), and this makes every surface (every discontinuity in material) a potential scatterer.
Scattering, as of visible light by (transparent) water droplets in a cloud, can block the direct light path very effectively.
Solid materials (and even compressed gasses) do not have sharp spectral lines, but fattened ones, due to "pressure broadening". It is important to note that heterogeneous materials have many surfaces that are not pure substances, which blurs the spectral absorption lines even more. Absorption can be very likely over broad spectral ranges.
The only light-blocking mechanism that is NOT likely in the case of IR illumination, at standard temperature and pressure, is photoelectric effect.
I would express it differently, because it is not only infrared that does not pass through solid objects, but all frequencies of the electromagnetic spectrum from ultraviolet down, with the exception of objects made up of organized lattices.
X-rays and gamma rays see mostly spaces between atoms and molecules, because the wavelength is short and they see mostly space and can go through, the higher the frequency the more penetrating. At the photon level making up light, Xrays and gamma rays have small probability of interacting due to the enormous space between atoms .
So the question should be "why are some materials transparent to electromagnetic radiation" . The answer to that is that the interactions photon+lattice allow for the incoming photons to scatter elastically with the whole lattice and exit while retaining phases and energy (color in the optical range). This transparency depends on the way the atoms and molecules build up the lattice.
This holds also for specific lattices which are transparent to the infrared photons and the light they build up, as with silicon. In the article opaqueness is attributed to the breaking of bonds in the lattice.
Have you not been heated by glass doors of modern fireplaces?