They have to block out the light of the star so that it doesn't overwhelm the light from the planet.
Not sure if you're joking, but in case you're not - the star at the center is usually so bright that its light drowns out the light of anything nearby. In such cases, the star is covered so that the dimmer objects nearby are visible.