The farmers protests were allegedly detrimental to the sovereignty and security of India and so it makes sense to ban those kinds of hastags.
FWIW, the American government also requests removals from social media sites.
Edit: perhaps this comment is unnecessarily controversial / inflammatory. I just wanted to suggest that there are other interpretations of free speech law and that it makes sense for a corporation to comply with those laws if they want to operate in those countries. I personally dont agree with those laws, which is why I fortunately moved to the US.