Why does he show behaviours like this?

I broke up with long time partner , we are living in same house til I find my own place as rentals are few and far between at moment. When in the relationship he did not verbally show appreciation for the things I did for us to run as a household nor did he show an inclination that he appreciated these things or have words of affirmation/time but when they were not done or did not happen he used to get upset and withdraw and took it as an attack or that I didn’t care and it used to cause dramas or snide remarks would come out of no where. Now when I choose to do these things (I stopped doing them when broke up and have been doing bare minimum- go along to get along) he all of a sudden is thankful, expresses it verbally and wants to give me his time? It’s confusing. I feel like I am not good enough in the relationship but out of it I suddenly get what I “need” - affirmation etc?
Why does he show behaviours like this?
Post Opinion