Yeah so many people seem to think its some sort of gift, or special ability - and for sure a natural sense of rhythm helps, but it can be taught, or at least approximated, same with pitch - but for the most part it's just years and years and years of working on it. Day in and day out. When you want to, and when you really don't. I've listened to some of the best players do their warm-ups, and even after 30+ years of playing, gold records and all that acclaim, and there they are, running scales over, and over, and over. You have to do it until you can do it without thinking, so that your fingers just go there, and then you have to work everyday to keep up that ability and stay on that level.
It's like a lot of the kids I work with watch me do something and ask "what's the trick" and quite simply the trick is I've been doing that for over 30 years. No trick, just endless repetition.