Why do chicks die in the egg?

Many reasons. Usually it has a lot to do with incorrect temperature and humidity.