Why not? I don’t think anyone would punish TSMC for responding to supply and demand. And I doubt anyone will remember or reward them for not being greedy.
While these 3 companies namely Micron, SK Hynix, and Samsung produce RAM modules, TSMC does not.
TSMC from day 1, is mainly focusing on outsourced fabrication for computing system where RAM memory is fabricated just as embedded component or sub-system of a complete system.
While increasing the price of thus RAM sub-component seems very attractive for short term gain but I think TSMC is focusing on long term business srategy where sudden RAM components price increased does not effect much of their overall profits.