It is a topographic surname, meaning it refers to a place or geographical feature. In this case, "Valdez" comes from the Spanish word "valle," which means "valley."
It's likely that individuals with the last name Valdez originally lived in or near a valley.