Not sure where you live but in Canada and the USA the phone companies legally have to allow you to port your existing number over from one company to another.
I remember porting numbers becoming a thing and I was born in 1989 so it must have been late 90s earliest. In Finland though, so don't know about north america