They also have hardware in the phone to generated HDMI (although electrically modified to fit on the USB connector). Given that only a tiny percentage of people will ever plug their phone into HDMI, it makes sense to have that minority pony up $40 instead of making everyone pay an extra dollar for the hardware they will never use.