Feel. I think it's mostly the case that people who play rock are not constantly counting to figure out where they are in a measure. In fact, I'd imagine that's the case for a lot of jazz players too.
I began playing drums for rock. Never had formal training (hell, I even played open handed and heel on foot because I never saw closely someone else playing drums) and yes, 99.9% I do it by feel or by ear, learning the melody. I'm trying to revert that 22 years after, though.
I genuinely thought everybody did the same until went to a clinic by Pepi Taveira, an argentinian jazz drummer, where he admitted doing the same - that unlike everyone elde, he didn't kept a count but kept the measure reference by learning the melody - specially on odd time metrics.
I have dyscalculia (and dyslexia) but I can keep time like you wouldn't believe. I once met a hotel lobby musician who was unreal and I said to him, you must be excellent at math, he said actually I can't even do basic algebra. I have a very rich audio/visual memory and thinking style, I can think in sound and movies, but that thinking style kinda creates the limiting factor for numbers and letters (literal no framework for them) maybe?
After spending a huge chunk of my time growing up in rhythm sections as the bass player, not only can I follow time like nobody's business, but I've grown to develop a penchant for weird time. Give me a time signature beyond 3/4 or 4/4 (15/8, anyone!?), or more importantly, give me a musician who will play some heavily syncopated rhythms and polyrhythms (looking at you, Chris Dave) and just do their best to stretch, bend, re-shape, and - pardon my french - fuck time. That's my jam.
Ask me to do anything beyond add/subtract/divide (forget algebra entirely lol), though, and my brain shits itself. Even at a certain point, division becomes complicated for me. But I will hit that pocket and never, ever lose the beat every single time, and that's always been interesting to me.
If you're in the pocket anything you play will be on time.
Pretty much anyone can stay in a 4/4 time if they have a lick of musical ability.
With the weird time signatures like 13/8 or 7/4 it can be tough to find the pocket, so in those cases the vibe tends to divide into 2 sections that fit right at first (like one section of 7/8 and one of 6/8, or one section of 4/4 and one of 3/4) and you bounce between them until you sew them both together and then you can stay in the pocket for all of them.
It's harder to explain via text than it is in music practice.
And with enough practice, "weird" becomes ordinary. I can keep rhythm in 7/8 and 7/4 almost as easily and automatically as 4/4 now, but 10 years ago it still took work. I sometimes go entire days with unbroken 7/8 music going in my head.
I wouldn't limit it to rock but anything that sticks to one time signature is pretty simple. Any 4/4 or 3/4 or 6/8 is easy to count. Then you have rock groups like Tool where the drummer is playing a totally different time signature than the guitar and only sync back up on least common denominator multiples. Jazz gets crazy too like you said.
What's weird is there are bands that deliberately play odd meters in their time signatures to match some sort of math concept that is just no where near the same likeability as what Tool does with their Fibonacci sequence and other things. I don't know if they are just lesser musicians, but it definitely feels forced. This is what I notice a lot about some jazz where they are doing it for the sake of doing it not because it sounds good.
It's definitely a case of learning the rules so you know how best to break them. If you just start breaking them without knowing why they are there in the first place just sounds bad to me.
"I don't know if they are just lesser musicians, but it definitely feels forced"
I think the art with that sort of stuff is making a rhythm and melody for the vocal, or lead instrument that feels natural, yet fits over the odd time signature.
There was a (slightly obscure) branch of Jazz funk in the late 80s early 90s called M-BASE that had a lot of this kind of stuff.
This track is called the X Format, by Steve Coleman, and i think it's in 13/8 time. But its always boggled my mind. It must be devilishly hard to play, but it feels quite groovy.