Why would an older guy lie about being younger?

For context: I’m 18 and he told me he was 25. We’ve been talking for almost a year but I was curious if he was keeping things from me. I found out that he was actually 34. I haven’t told him that I know
Why would an older guy lie about being younger?
Post Opinion