If we think AI would not do awesome code, then we're ignoring the achievements of many of the AI bots. I saw an LOL bot outperform lots of world class videogamers. What makes you think a bot will not outperform any HTML/CSS frontend dev.
But it currently lacks a lot of data to do so. A mock up is only a small part of the data and feedback loop you need to create a ui.