Rest and motion are the relative terms because they depend on the observer’s frame of reference.
If an observer is at rest in his or her own frame of reference, but he may be moving in other observer's frame of reference. Without any reference object to relate with it isn't possible to mention whether a object is in rest or motion.
It is best understood through examples-
For example- Let it be that you are travelling in a bus.
So to you all other passengers are in rest.
However for a person who's outside the bus, everyone inside the bus is moving.
Hence, in the first example when you are the reference object, the passangers are stationary that is in rest.
But on the other hand, when the reference object is a person outside the moving bus, the same passengers are in motion that is moving.