Knowing what's good for you and actually doing it are two very different things. If a normal animal were to just not sleep and starve itself, we'd question their intelligence as well as self preservation drive. On the other hand, humans often either eat way too much or way too little. Most are sleep deprived, and constantly pick self harming and unhealthy options.