See "How do I confirm authorship of my publications to add them to my profile?" in https://help.researchgate.net/hc/en-us/articles/14293005132305 for instructions.
See "Another researcher has claimed my publications" in https://help.researchgate.net/hc/en-us/articles/14292798510993 for instructions how to correct this. But unlike this help page suggests, most probably it was not the other author himself who wrongly claimed authorship, but ResearchGate's automatic algorithm wrongly identified him as the author and assigned your publication to his profile. This is a frequent problem in ResearchGate in case of similar names.