a) there are plenty of cases where using e.g. a builder to construct a stateless component is better than having a straight up function.
b) it's easy to have a function producing HTML that isn't ready for re-use in your application.
Saying "It's just functions!" is really selling it short.