What's his issue

Every time my bf comes over to "spend the night" he will literally find any reason not to stay the night. He will either say he's hungry (I've offered to make him food. Not to mention I live 5 minutes from a wawa, McDonald's, and wendys). He'll start petty arguments over nothing. He'll say I'm not paying him enough attention (99% of the time this is utter bs). Just tonight I was laying here (it was 12:30am and I was getting sleepy) and he was saying he wouldn't be able to sleep bc he has a lot going through his mind (he's used that excuse about 3 times now) and we started arguing and I told him that this is why I no longer ask him to spend the night bc he doesn't stay 90% of the time and finds a reason to leave. He is the one who said he wanted to spend the night but as always found a reason to leave.. I stayed at this man's house the last 3 nights and I never complain even though his bed kills my back and I hate sleeping in the complete dark like he likes to do but you know I deal with it bc I love him and want to spend time with him. Honestly I'm just over it.. I guess I just wanted to vent bc I honestly don't get why he hates being at my apartment so much. Like I don't understand it at all.. Like why offer to stay the night if you know you're just going to leave anyways 🤷‍♀️