Did you know that humans get energy from sugar? Proteins are important too but a lot of energy for living stuff is sugar
Also the sugar bad thing is mainly for excessive added sugars