Here's why:
* Prepositions show the relationship between a noun or pronoun and another word in the sentence.
* In this case, "besides" shows the relationship between Jill and Derek. It tells us that Jill was working in the same place as Derek.
The full prepositional phrase is "besides him".