Its arbitrary - that's how the word (work) is defined.
The two variables that affect the force of gravity are the mass of the objects involved and the distance between them. The force of gravity increases with the mass of the objects and decreases with the distance between them.
distance and force work=distance/ force
Work is the product of (force) times (distance). There are no other components.
Work is basically the product of force and distance traveled, so if any of the two (force, distance) change, the work will change as well.
Work depends on both the force applied to an object and the distance over which the force is applied. The formula to calculate work is Work = Force x Distance.
Force and distance
The two things that work depend on are force and distance.
Force x distance = energy. (Transfer of energy is usually called "work", but the two concepts are related.)
The work done by the force F on the two-block system is equal to the force multiplied by the distance the force moves the system.
Work is the product of (force) times (distance). There are no other components.
You need to know the amount of force applied to an object and the distance over which the force was applied in order to calculate the work done in any situation. Work is calculated as the product of force and the distance over which the force is applied, given by the equation work = force × distance.
Force, distance, the angle between the two.