Never do anything for another with the expectation of gratitude. The expectation itself turns the gift into an exchange and suggests a debt is owed you.
Our expectation of the gratitude of others for what we've done for them is sometimes exaggerated because of our deep desire for appreciation and approval. When our good work or good deeds go unrewarded by hoped for praise, we feel like failures so we treat those who denied us our due as betrayers.