Common origin of reactor and sterile neutrino mixing