On the origin of the exchange interaction between rare-earth ions in Van Vleck pnictides