Attenuation is related to viscosity. Low-viscosity materials (especially water) have very little attenuation. If there are a lot of scatterers in the material then there will also be diminished energy available as a function of depth in the material. These account for the mechanisms of absorption and scattering that attenuate the primary beam energy.