Disclaimer: I know this question doesn't refer to a specific time or place. However the situation that I present is largely consistent across historical and geographic bounds, unless the answers prove me wrong.
I studied French all throughout high school, probably 4 hours a week of classtime and around that much in homework. I could google any word or grammatical concept I wanted to and instantly have a complete explanation, I had all sorts of flashcards and textbooks and grammar exercises and videos from native speakers, etc.
And yet after four years of high school French, my French was still terrible. I couldn't understand native speakers whether in person or in movies, and when I went to France for holiday one time, the people had no idea what I was saying.
So how were ancient people able to learn multiple foreign languages and effectively communicate in them? Not only did they not have resources like textbooks flashcards google etc, but peasants and lower class people would probably have barely any time to study due to work. Not to mention language teachers were probably very rare. The probability of them coming across native speakers was likely very low for most.
Even if someone did manage to perfectly learn a language's grammar and vocabulary in their home territory with textbooks or teachers, how intelligible were they to native speakers? I mentioned how even though I had been listening to recordings and videos of French native speakers for years, I was still basically intelligible to them when I visited. To give a less general example, I have met many immigrants to my country (US) who have lived here for years and have such thick accents that they are basically unintelligible.
To give some particularly interesting (to me) examples:
Honestly, speaking as a language learner, plain study is insufficient. Study is useful, you need it especially for rules and vocabulary, but that really needs to be combined with actual use. (Survival pressure, ie the "learn or die" method, tends to help.) Not yet getting into cases where people might have to grow up knowing multiple languages (hi). More can always be said on language acquisition, so if anyone ; for the meantime, here are some previous posts that cover this matter.
u/WelfOnAShelf has a collection of their answers regarding language acquisition, those being these three threads:
Saving me the trouble, u/myfriendscallmethor also has a language acquisition compilation, with u/Iphikrates providing an important supplementary note downthread.