And even Hindus.
I grew up in North India and I was taught to say thank you to friends and even to family members e.g., say thank you after being offered snacks (what would be called hors d'oeuvres in the west), offered a chapati or additional daal or sabji during meals, etc.
I did not say thank you to bus or cab drivers, but often did say thank you to shopkeepers.