ChatGPT is a large language model and its behaviour is determined by the data it was trained on. One of the datasets it was trained on is Wikipedia, which is known to have anti-Hindu bias. Another include books by leftists academics.