In Latin for example it’s just a “…near the noun? Whatever, just don’t be ambiguous."
It doesn't need to be remotely close to the noun lol
Though Latin syntax can get annoying sometimes (when do I use the subjunctive? What's the correct negation? Perfect or imperfect… maybe pluperfect? Which noun is this random genitive modifying?), it does make sense eventually. I guess that is also true for English, but I still mess up the tenses sometimes.