It's illegal according to whom. What country are you talking about. Do you mean DJI do app? It is because they don't want thier products to be used for nefarious or dangerous uses, such as flying near airports or in war zones or other restricted areas. Well honestly there are opportunistic idiots and /or other bad actors out there in the world.
GCS are not restricted, the C2 link might be