Races that are ran under the rules and regulations of the ASA (10km+) requires you to have a running license. You can either
buy a temporarily license for the race you want to enter, or join a running club and purchase a permanent license number for the year.
If you run more that 3x 10km+ races a year, it starts making financial sense to get a permanent number.