Its rounded end was used to crush boiled potatoes and other soft foods in a bowl or container. Depending on its exact shape, it may also have been used to mash cooked vegetables or fruit.
One important detail: without seeing the actual object, its precise historical purpose cannot be confirmed. A photograph would help distinguish a potato masher from other traditional wooden kitchen utensils.