"Why to work" would be used only in the context of a journey, for example:
Person 1: "Can you take me to work tomorrow?"
Person 2: "Why TO work? Why not FROM work?" (Presumably Person 2 is busy in the morning...). You would not use your phrase often in English.
"Why work?" is good English and means, "what's the point of working?"