Lying boyfriend

Hey guys so I just need some advice. My boyfriend is the absolute best but he has a bad habit of lying to me and keeping secrets. They are never anything major and most of the time it’s just dumb little things but it bothers me that he keeps being dishonest. Example: he lied to me about finishing a movie. I don’t care that he finished a movie and I’m never fighting with him for him to feel the need to hide things and lie to me I just wish he’d tell me the truth and confided in me. I feel like he’s had a bad history of toxic relationships and he cares about me so in order to keep me around he tried to avoid conflict/ get me upset like his other girls. I have caught him lying multiple times and every time I try confronting him he has no explanation for it and just seems to feel bad afterwards almost as if he can’t help it. I’m not putting him or anything I’m just looking for advice, tips, and explanations. Any thoughts?