A preposition sits in front of (is “pre-positioned” before) its object. It is useful to locate prepositional phrases in sentences since any noun or pronoun within the prepositional phrase must be the preposition's object and, therefore, cannot be misidentified as a verb's direct object.
Josh headache comes because he realizes he will have to go through with the bet and cut his locks. Which is devastating for him because he calls them his wings.