It's based on SMS [0], the standard that allows telephones to receive text messages. The message size in SMS is limited to 1120 bits, which works out to 140 8-bit characters (or 160 7-bit characters.) One of twitter's design goals was to be usable from the broadest set of mobile devices possible.