Brands have to get UGC rights permission from the creator to avoid legal conflicts in the future. If they start a collaboration, the creator will give them rights to use their content, and this is even arranged in a contract.  You can find more details and a free UGC contract template here.