The phrase "than whole foods" is a comparison between two things. In this case, it means that something is considered to be better or more beneficial than eating whole, unprocessed foods. The implication is that the alternative being compared is thought to have greater nutritional value or health benefits than consuming whole foods.