Sometimes, when working on something, you start digging into a particular technical issue. The more you dig into it, the more it leads you away from your original goal. I like to call this “chasing the rabbit”. If you chase a rabbit through the woods, and only keep your eyes on the rabbit, you’ll eventually find yourself lost in the woods.
It’s easy to lose sight of the big picture when you are “chasing the rabbit”.