What does it mean when a guy says unfortunately I don't do relationships?

This might be stupid but idc. So I started to talk to this guy and he calls be pretty and all this other stuff. He woud throw out litte hints that he liked me. He says sweet things to me I thought he liked me so I told him and he said I see I thought you did unfortunately I don't do relationships. I said sorry and asked if we could still be friends and he said yes.
What does it mean when a guy says unfortunately I don't do relationships?
Post Opinion