In which cases we need to specify density?

Why is it important to specify the density of a material in dynamic problems?

and in static problems we don't specify density.?