Prepositions in English are highly idiomatic. Although there are some rules for usage, much preposition usage is dictated by fixed expressions. [0]
Prepositions are fascinating. Why is it that NASA and ESA don't get a "the" but the Sun, Earth, Moon and USA do? Why does it always feel wrong when Apple doesn't use "the" before iPod, iPhone, etc?
0. https://academicguides.waldenu.edu/writingcenter/grammar/pre...