A wave traveling in one direction on the string reflects off the end, and returns inverted because the end is fixed. This gives two identical waves traveling in opposite directions on the string, just what is needed for a standing wave.