That implies that friendship and sexual attraction are mutually incompatible. They’re not.
I’ve many friends whom I’m attracted to and would, were circumstances different, cheerfully sleep with. The fact that I’d be interested in having sex with them doesn’t negate my friendship with them, nor does it get in the way…