Sun setting over the beach

The curve of the Earth can be observed by experimenting with the horizon over varying distances. However, we have additional proof of Earth's roundness in the rising and setting of the sun. If the Earth was flat and the sun was always above the plane of the Earth, then why is it's light not always visible and why can we not see it?