EA do it as soon as 18 months after a game has come out. Just in time -- surprise -- for the next installment in that franchise.

What games are you talking about? Because all of the games that they've shut down the online for are either old, or barely sold at all. I mean really, the latest list includes Create. http://www.vgchartz.com/game/46530/create/
No, it's a fact. Look up how many studios they've bought up, then closed.
Alright, say you're the head of a video game company. You then decide to purchase a studio. Said studio makes two games which don't sell all that great, has issues with management, and turns out costing you money. What do you do? Do you keep the studio open, hoping their next game will be a big hit, taking the risk of losing several million dollars? Or do you cut your losses and close the studio?
From the mouth of a former Pandemic employee:
I was one of the affected today.
Having worked at Pandemic for close to 5 years, it's a bittersweet moment. We literally just finished Saboteur and are extremely proud of the game it turned out to be, considering the amount of hardships we had during development. On the other hand, we now have no job and are forced to part our ways with people we hold dear to our hearts.
I can tell you one thing. The reason why the studio closed down has everything to do with the existing Pandemic management. From what we were told, Pandemic management was given free reign to do as they please. Time and time again, they dropped the ball with bad decisions (promoting/keeping people based on loyalty, no production accountability, misallocation of resources, poor milestone objectives, no mentoring, etc.). It's a true shame, as there was a lot of talent and passion at the studio.
I wouldn't necessarily hate on JR and EA's execs just yet. In my eyes, they probably made the right decision as Pandemic cost a lot to upkeep and, quite frankly, the last few products weren't up to snuff. I think many of you would be surprised how much a game like Saboteur costs to make (think ~100 people for 3 years + ~20 people for ~2 years). Add overhead cost to incompetence in management/direction and you have a pretty convincing case to cut your ties and call it a day. It probably doesn't look good for JR considering he made a cool 5 mil off of the sale of Pandemic/Bioware.
So in the case of Pandemic at least, there were other issues which led to their shutting the studio down. More than likely, they would have gone under anyway. (On a side note, a lot of former Pandemic staff now have a home at 343i).
Class action law suits from several different departments beg to differ.
Links please, I know it happened, but I'd like the source.
See above. See also: Bioware (and other developers) before and after EA-fication; the low quality games; the day-1 DLC; Origin (incidentally, also the name of a studio they disbanded).
That's your opinion. All EA games I've purchased I've thoroughly enjoyed, so again, your opinion. As long as the DLC isn't on the disc? Whatever, it's more content. In the case of "From Ashes" BioWare started working on it after they had sent the core content off to be certified. Some content was located on the disc for technical reasons, but you still have to download most of it. http://www.neoseeker.com/news/18564-mass-effect-3-from-ashes-dlc-found-on-disc-bioware-explains/ I also don't see what's wrong with Origin, unless you're talking about it supposedly spying on you. Which, by the way, it doesn't. Not outside of system specs and programs installed through Origin.
So tell me again why EA is such an evil company.