Thermal collectors, at best, can capture about 90% of the sun's energy. Practically speaking a bit less.
Solar panels, at their best, can capture about 25% of the sun's energy as electricity. There exist heat pumps with a coefficient of performance (COP) such that the system as a whole captures more heat i.e. COP >4
I'm not sure the claim is absolutely true universally, especially in challenging environments, but in a broad sense it is true that turning sunlight into electricity and then using that electricity to power a heat pump has a bunch of advantages over direct solar thermal, not least of which is air conditioning.