Twitter had to kill their ecosystem in order to make any money on advertising. There was just no way to sell ads if so many users were going to be using 3rd party clients.
You may be right that killing off the 3rd party ecosystem hurt their usage, but from a business perspective, there wasn't any point keeping it if it was damaging their business model.