It doesn't matter to them that they think it might fail. The only reason that SpaceX exists is to colonize Mars, and the only way to do that is with reusable spaceships. The reason they're willing to try it is the same reason they were willing to build non-reusable rockets to start: it's the only way forward.