Twitter’s 140-character limit came from SMS.
When Twitter launched in 2006, the limit was set to fit inside a single text message, which had a ceiling of 160 characters. Twitter reserved 20 characters for the username. That left 140.
Twitter on Brandseum