Twitter was originally SMS-based, where you would write a post (they didn't call them tweets back then), and it would get forwarded to all your followers via SMS. Obviously the SMS to your friends had to be prefixed with your username, so that's what the 20 characters at the start were reserved for.