Lied about what he wants?

My bf asked me if I would want to get married in the future, I said yes. So every now and then he’d say little things like “wanna get married?” or “i wanna marry you one day”, which would make me smile. Now he just told me that he never wants to get married, and he would say those things as he knew that they were far ahead and it would make me happy. I don’t know what to think?