Sometimes you need to do something custom when it comes to fetching data, outside of what you get out of the box. Custom tags is the way we can do that in Statamic!
Don't forget to subscribe to my email list here:
https://mikelaroy.ca/statamic
Statamic docs for learning about Tags:
https://statamic.dev/extending/tags