It’s a little confusing about the timelines and stuff, but if you watch The Flash, you might understand how things might work. He used the Time Ring to go to Future Trunk’s timeline and that Future Zamasu liked his plan.
He explained to him his identity and how he hates mortals too. Black Goku then explains how he met Future Zamasu.