Ever wondered why you can never reach the end of a rainbow? The answer is simple, it dematerializes and lands somewhere else so you can't get the pot of gold. And so it is most likely that rainbows are just TARDISes owned by leprechauns who fly away in them so you can't get their pot of gold.