How do you know that Paul studied under Gamaliel, besides the fact that he CLAIMED it? He never gave any details about it to make anyone believe that it was actually true.
In Acts 23, when Paul and Gamaliel should have encountered one another, Gamaliel is nowhere to be found.
Actually, the claim doesn't even appear in Paul's own letters. The quote is attributed to him by the author of Acts.