Because the earth revolves around the sun and the whole earth isn’t always facing the sun it changes that’s why we have night and day and summer and winter etc
Work is measured as the product of force and the displacement in the direction of the force. Work = force × displacement in the direction of the force.