Why are we using resistor to send a 5-volts back to ground?

Please read the how to use the forum post. Your post includes little information that we can use to help you.

There are any number of reasons to "put a resistor back to ground".

Post a link to the project book. Tell us which exact project. if necessary, point out the resistor that you are questioning.