Here's why:
* Prepositional phrases consist of a preposition (in this case, "in") followed by its object (in this case, "the twentieth century").
* "in the twentieth century" functions as an adjective phrase modifying "wars." It tells us when the wars were particularly devastating.
The complete sentence with the prepositional phrase highlighted:
The world has seen many wars in the twentieth century but two have been particularly devastating.