In some cases, ResearchGate adds papers automatically. This depends on their contracts with publishers and bibliographic databases. Users do not have any influence on this. Other papers have to be added manually by their authors. See https://help.researchgate.net/hc/en-us/articles/14293005132305-How-to-add-research for instructions.