Are you asking if the sentence is correct, or why people sleep when they are supposed to be working? If the former, the sentence is correct, except you need to capitalize the W in what. If the latter, people sleep for all sorts of reasons when they are at work.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.