Prepositions are small words that connect elements in a sentence. They are essential because they provide additional details about the sentence.
We use prepositions of place to locate an event in a space frame {see Common Prepositions of Time and Place, A1 level}.
https://open.books4languages.com/english-a2-grammar/chapter/prepositions-of-place/