The entire phrase would be "friends with right to sex". Some societies assume that friends cannot be also casual lovers, so somehow that right pacta even without being truly in love. See amigovio.