The density changes with different objects as all have different mass and volume(the space an object occupies) and the more compressed(Compact) the object is the more density it has.
Because some objects have their mass spread out thinner through their volume.
The mass of rock is tightly smooshed together, so rock has a large density.
The mass of air and baby powder is spread...