Because HTML doesn’t do the things that that programming languages do.
It can’t make decisions and it can’t loop. You can’t give it a list of numbers and have it sort them or find the average, something all programming languages can do. HTML is about displaying text and images and creating hyperlinks. That’s why it is a markup language and not a programming language.