You don’t need to export it. It’s just for convenience.
If you add AppRoutingModule to AppModule you also implicitly import RouterModule this way. Otherwise you would need to import it explicitely
@NgModule({
imports: [AppRoutingModule, RouterModule],
})
export class AppModule {}
for example to be able to use <router-outlet> or RouterLink in components declared in AppModule