For Twitter, Rails was the technology they knew. They decided it wasn't the right tool for their needs. Scala is the tech they learned (and continue to learn) on the job. They even have a group blog detailing this process (http://gracelessfailures.com).