There are a number of reasons why China and India do not have a good relationship. One reason is the long-standing border dispute between the two countries, which has led to several wars. Another reason is India's close relationship with the United States, which China sees as a threat. As such, China is likely to continue to seek to strengthen its relationship with Pakistan as a way of countering India.
However, China is also aware of the importance of maintaining good relations with India. India is a large and growing economy, and is an important market for Chinese goods. Additionally, India is a major player in regional and global affairs, and China is keen to maintain its influence in these areas. As a result, it is likely that China will continue to pursue a policy of balancing its relations with India and Pakistan.