Most important: don't give your phone number to companies! It is used to link your activity across sites and apps.
You of course can't get an Apple ID, a Google Account, a Twitter username, a Discord account, et c without giving a phone number. There are several good reasons for that but the biggest one is for identification.