The Sun is closer to the Earth than the other stars. Therefore, it looks like a large shiny disc, not a dot. The beam of sunlight is big enough to pass through the atmosphere unaffected by refraction.