My guess is ChatGPT is listing plants with complementary colors based on garden examples. If you are looking for companion plants in the sense that they help each other grow then you probably want to look elsewhere.