I believe credits weren't really a thing on pop recordings back then, not to that extent.
There are quite a few Beatles songs on which Ringo didn't play — such as "Yesterday," or "Eleanor Rigby" or "Julia," which are without drums — but I assume you mean Beatles recordings of songs that do have drums but which are played by others.
Session drummer Andy White played on "Love Me Do" and "PS I Love You" ... as did Pete Best and Ringo. Producer George Martin correctly assessed that Pete Best wasn't good enough, so he hired Andy White, not knowing that the Beatles had since replaced Pete with Ringo.
Paul plays drums on "Back in the USSR" and "Dear Prudence," because Ringo had temporarily quit the group; John and George also play drums on "Back in the USSR" in one big melange of drumming. Paul played drums on "Martha, My Dear," just 'cuz, apparently, since Ringo had already rejoined the band by then.
Paul plays drums on "The Ballad of John & Yoko," because Ringo (and George) were unavailable and John wanted to record it right away.