It’s not dumb luck, it’s natural selection. The language used is just a way to describe the factors that lead to the adaptation. Nobody is trying to imply intent.
The way I was taught it in high school with the implication of some intent by nature. An example would be that birds developed hard beaks in order to crack open the hard shells that contained nuts. The above sentence implies some intelligence by the bird.