Who knows what people do and why. That guy might be not exclusive with other girl or/and in open and casual or FWB relationship. Who knows why he sleeps with your friend. Do you even know him? Unless it’s your own relationship I don’t see how you can know what’s going with that guy. I’d not worry about it.