First, the company started releasing phones with a locked down bootloader, which led to the company receiving heavy criticism and making an impact on its sales.
HTC literally spammed the market with Android phones that were hardly different from each other, and all of them failed to make a significant impact - sales wise.