Because a fuel cell gets its hydrogen from one of two primary methods - electrolysis or natural gas reformation - both of which are inefficient and consume significant amounts of energy. That same energy could be used more directly and efficiently in powering the vehicle directly in an EV.
See Figs 13 & 14 for total…