The kitchen junk drawer is largely responsible for domesticating wild rice. That DNA is not useless. It is there in case a species suddenly needs to do something different. Then evolution reaches into the kitchen junk drawer and searches for a solution. Usually it finds one. This is a LOT faster than waiting for random mutations to offer something brand-new.