Twitter lags behind its rivals. Here’s why Elon Musk bought it anyway.