Reading comprehension is not an issue, but for you understanding poetry is an issue. Ayaz was a slave, yes, but not every slave thing is related to sex.
Even Sahabis kept slaves, sometimes just bought and freed them. Read about Mahmood-Ayaz story from some authentic source and clear your mind from the filth .