Mass resists compression due to the repulsion of each piece of matter for other pieces of matter.