Actually, Rivian has now introduced an electrochromic glass roof as an option.
Lucid did originally announce that the canopy would be electrochromic. In fact, the early show cars had a switch for the dimmer above the rearview mirror. There were at least a couple of reasons why it would not be suitable for the Air, but Lucid might have been hoping the technology would evolve before the car went into production.
First, the electrochromic elements are not in the glass itself. They are in a stiff film that is usually sandwiched between glass layers. That film does not bend easily, and the curve of the windshield as it rounds into the roof was probably too severe. (When Boeing introduced electrochromic dimming in the Dreamliner they actually had to flatten the window panes.) Second, the film never becomes completely clear. It could not be used in the windshield itself, and there was no way to terminate it as the roof transitions to the windshield without a pronounced line showing in the canopy. In short, the Air could not have both the curved single-piece canopy and electrochromic glass.