Matthew W. answered 04/03/20
BA in Spanish w/ student experience as a tutor and teaching assistant
Le(s) becomes se when it is used with the direct object pronouns la(s) or lo(s). As a refresher, the direct object is what's getting acted upon (or, put simply, verbed) by the verb. Direct object pronouns are used to refer to the direct object. The indirect object is the recipient of the direct object and an indirect object pronoun simply refers to the indirect object. So in a sentence like "I gave him the book", "the book" is the direct object because it is the thing being acted upon and "him" is the indirect object because it is the recipient of the direct object. In Spanish, this sentence would be "se lo di el libro", with "se" being the indirect object pronoun and "lo" referring to the direct object, "el libro."
I've always been curious about the exact reason why le turns into se in the context described above. But even after having taken a course in the history of Spanish grammar, I still don't have a definitive reason. Generally everyone says that it's because le(s), la(s), and lo(s) all sound alike. There are few tricky aspects of Spanish grammar that just seem to be tricky for no reason at all. As with any tricky part of the language, it will get easier with time and practice. Hope this helped!