You still haven't said what the difference is, or the testing conditions. Or even what the test itself is.
While the iPad Mini 5 and the iPhone XR use the same CPU, and the same amount of RAM, they differ in other ways. The storage in one could be faster than the storage in the other - boosting any storage-related parts of the testing. The iPad has a larger chassis, which is made of metal, so it conducts heat away from the CPU better - allowing the CPU to run at higher speeds for longer before thermal throttling is needed. (Which is generally more important on benchmarks than in everyday usage.) Depending on the test, it might run at different resolutions on the two devices, allowing for a difference in results. One system could have more running in the background than the other. One could have simply more on it than the other, causing standard OS background tasks to do more work.
Until you say what tests you ran, and what the results were, we can't answer better.
The only way to get a reliable comparison is to start with as close to identical, as close to fresh-from-new configurations as possible - do a full restore on both, do not load any software other than the benchmarks, run with all background tasks off, after the same number of reboots since restore, etc, etc.
Note that Geekbench shows the mini 5 is slightly faster, too:
https://browser.geekbench.com/ios-benchmarks Likely down to the iPad being able to cool better. Anandtech did such a test when the iPhone 5s and iPad Air came out:
https://www.anandtech.com/show/7460/apple-ipad-air-review/3