https://www.frenchclassnearme.com/french-prepositions/
French prepositions can feel unpredictable at first. You may see sur le chemin (“on the way”), dans l’avion (“on the plane”), and then à la télé (“on TV”). If you try to translate these directly from English, they don’t always make logical sense.