Hello sir, it is normally cause by the foods and the bacteria which is there in the oral cavity we call those bacteria as chromogenic bacteria means it causes stain, you can easily get rid of it by professional cleaning with your dentist.
But maintaining after cleaning is really important to prevent it.
Next Steps
use your mouthwash twice, and cut-down coffee and green tea they may also cause these stains.