Hubble-scaling

(Energy) densities of cosmological fluids scale proportional to squared Hubble parameter. where does this come from and would the scaling of an (electrical) charge density be identical?