If after being romantic he says he wants to be friends, what does that mean?

So I was talking to a guy and we were flirting back and forth then suddenly he wants to be just friends but we've been sexual before. I'm really confused but like how do I get out the friend zone and what does this make us?
If after being romantic he says he wants to be friends, what does that mean?
Post Opinion