Here's why:
* Prepositional phrases begin with a preposition (like "in", "on", "at", "to", "from", etc.) and are followed by a noun or pronoun (the object of the preposition).
* "In" is the preposition, and "the pool" is the object of the preposition.
The prepositional phrase tells us where Roberto swam.