Raytracing culling means it doesn’t raytrace that particular foliage painter cluster anymore beyond a certain distance, hence no shadows xd.
Next thing I can think of is to try if your cluster sizes are too small. Raytracing culls very small instanced objects in the foliage painter at quite short distances per default. There’s a console cvar for that too but currently not behind my work-pc so just check the r.RayTracing.InstancedStaticMeshes cvars, it’s one of those.