Only Fard prayers are wajib (that also for Men) to do at mosques. Prophet used to perform all his sunnat prayers at home.
In fact even today, when people think that Arab scholars dont pray sunnat after Maghrib cause they leave the mosques is because of the reason. They go home to pray and people think that they are leavinig the mosques without praying sunna and it must not be important and lots of people stop praying sunna because of that reason ..
that is why now some ulema recommend to even other scholars and imams to pray sunna at mosque so general public do not think otherwise