Why are roads closed during roadworks?

Why are roads closed during roadworks?