Why were my boss really rude and avoided eye contact with me last week but was really nice today and made an effort to give me praise and talk to me?

So my boss spoke to me in a hard voice last week an completely avoided eye contact at a meeting but looked at everyone else but we had one on one today where he praised me a lot and he inisiatet small talk convos througout the day so what is happening?

Why were my boss really rude and avoided eye contact with me last week but was really nice today and made an effort to give me praise and talk to me?
Post Opinion