Writers often make the mistake of thinking that dashes and hyphens can be used interchangeably. Actually, each mark has its own distinct use.
Hyphens vs. dashes
Hyphens overview
Dashes overview