What is the reason for hash marks?

In football, the ball is placed on the field after a play where the players movement has stopped. Although, if the player steps out of bounds, the ball is placed towards the center of the field to the nearest hash mark. If not, the ball would be placed at the sidelines.