Pixel density affects image quality because it determines how many pixels make up a display point. Higher pixel density means more pixels per display point, which can make images look sharper.