Black holes have a LOT of mass, which is why they have so much gravity. So much, in fact, that atoms are actually crushed to fill in the empty space. Sometimes a dying star has enough mass (and gravity) to crush atoms, but not quite enough to keep light from escaping.