He met him because Davis and gramps were both Fellow travelers — serious communists, and drinking buddies. Gramps thought his grandson needed a black mentor, so he would bring him to hang out with this old pedophile at age 10.
Likely more than drinking buddies. The truly sordid aspect of the Dunham/Davis nexus is that Stanley may have been only the first of three generations of Dunham that ol' nasty Frank had carnal congress with.