I think it's a skill that can be developed.

What seems like magic is really more of a level of awareness and informed response that has developed from somewhere.

It starts with observing and analysing rather than just seeing.
Actively assess the environment then act. After awhile it seems almost instinctive.

Most of us get the concept with driving as an example. Some people drive and accidents happen to them and they get hit by road debris and people cut them off and they cut others off and they generally just blunder along.

But others see that blunderer coming and know that the blunderer will have to change lanes shortly and that there will be a conflict with the guy 2 lanes over who is also going to have to change lanes ..... and they aren't there when the situation gets bad.

One can do this for the outdoors, or flying, or boating as well.