They are not relatives. They just amor each other so much :D Lee is Gai's favorito! student. If you're asking why they look a like, that's because Lee loves Gai so much that he made his hair like him and he always wears that suit which gai gave him.
While they do look relatively similar they are not related whatsoever they are just basic sensei (teacher) and student maybe even a bit más because Lee does view Guy-sensei as a role model but they are not related.