With gustar and verbs like it, the subject of the sentence is the thing being liked, while the thing doing the liking is expressed via an indirect object.