(CNN) Baltimore State's Attorney Marilyn Mosby is going from prosecutor to civil defendant in connection with the case of the death of Freddie Gray.

On Wednesday, Mosby announced that charges against three officers still facing trial were being dropped. Mosby gave only a statement, but had to leave without taking questions because five of the officers in the case have filed lawsuits against her.

Officers Garrett Miller, Edward Nero and William Porter as well as Sgt. Alicia White and Lt. Brian Rice are suing Mosby and Maj. Samuel Cogen of the Baltimore Sheriff's Office. Cogen was the law enforcement officer who filed charging documents against the officers.

The lawsuits allege false arrest, false imprisonment, defamation or false light, and other assertions. They were filed in U.S. District Court in Maryland in 2015 in late April and early May around the time the officers were arrested.

Gray died in a hospital on April 19, 2015, a week after police stopped him on a Baltimore street. After his arrest, officers placed Gray in the back of a police van, which made several stops.

When the van arrived at the police station, Gray was unresponsive. His neck was broken and compressed, prosecutors said in court , comparing the spinal injury to those suffered after a dive into a shallow pool.

Rice and Nero had already been acquitted in separate bench trials. So had Officer Caesar Goodson, who apparently has not filed suit. Porter was the first to be tried but his case ended with the jury unable to reach a unanimous decision.

An attorney for two of the officers said Wednesday that there were ulterior motives in charging the officers.

"Marilyn Mosby's comments in her press conference today confirm that the charges brought against my clients, Sgt. Alicia White and Officer William Porter, as well as the other four officers, were politically motivated and not supported by evidence to establish probable cause," Michael E. Glass said.

He said his client suffered "extensive pain and suffering." Porter and White had been suspended without pay until Wednesday. They are now on desk duty after more than a year on leave.

Rice, the highest-ranking officer charged in the case, paints himself as minimally involved, according to court documents.

He was the first to make eye contact with Gray, the lawsuit concedes, but he was not involved in the arrest. When a crowd gathered around the police wagon where officers were attempting to place an "uncooperative" Gray, Rice "directed other officers to move the wagon approximately one block south in order to complete paperwork and otherwise effectuate Mr. Gray's arrest."

Gray "continued to yell and scream" and slam himself against the side of the van, causing the vehicle to shake, so officers removed Gray from the wagon and placed him in flex cuffs and leg shackles, according to the lawsuit. He was placed back in the van, where he again "began to bang the inside of the wagon."

That marked the end of Rice's interaction with Gray, the lawsuit says.

"At no point during his interactions with Mr. Gray did Plaintiff Rice see any officers use excessive force, strike or tase Mr. Gray," the lawsuit states.

Rice accuses Mosby of realizing the case would draw widespread media attention and speaking "in a divisive and inciting manner" while making false statements about him. Mosby's remarks, Rice alleges, broke the state's code of professional conduct, which forbids lawyers from making "an extrajudicial statement" they know will prejudice a court proceeding.

One of the false statements Mosby made, according to Rice's case, was saying the knife Gray was arrested with was legal under Maryland law. Rice contests in his lawsuit that it was spring-assisted and therefore illegal, and says Mosby knew that.

Mosby told Cogen to file the erroneous charges against Rice, the lawsuit states.

The lieutenant "lost his freedom and dignity and suffered physical and psychological harm from being arrested and detained without cause," the suit says.

The litigants are asking for $75,000 per allegation, plus legal costs.

CNN left messages Wednesday with Cogen and his attorney.

Photos: Baltimore officers in Freddie Gray case Photos: Baltimore officers in Freddie Gray case Lt. Brian Rice, who was part of the bike patrol that arrested Gray. On July 18, 2016, Rice was found not guilty of involuntary manslaughter, reckless endangerment and misconduct in office in connection with Gray's arrest and death. Six Baltimore police officers were charged in the April 2015 death of Freddie Gray, who died of a severe spinal-cord injury while in police custody. But there were no convictions in the case. Three of the officers were acquitted before prosecutors dropped the charges against the remaining three in July 2016 . Seen here is, who was part of the bike patrol that arrested Gray. On July 18, 2016, Rice was found not guilty of involuntary manslaughter, reckless endangerment and misconduct in office in connection with Gray's arrest and death. Hide Caption 1 of 6 Photos: Baltimore officers in Freddie Gray case Caesar Goodson drove the van in which Gray was fatally injured. On June 23, Goodson Officerdrove the van in which Gray was fatally injured. On June 23, Goodson was found not guilty on all charges, including the most serious count of second-degree depraved-heart murder. Hide Caption 2 of 6 Photos: Baltimore officers in Freddie Gray case William Porter was the first of the six officers to face a trial. It was the first of the six officers to face a trial. It ended in a mistrial in December, and he had been scheduled to be retried before prosecutors dropped the charges against him. Porter was summoned by the van's driver to check on Gray during stops on the way to a police station. Prosecutors said Porter should have called a medic for Gray sooner than one was eventually called, and they said he also should have ensured that Gray was wearing a seat belt. Porter had been charged with involuntary manslaughter, second-degree assault, reckless endangerment and misconduct in office. Hide Caption 3 of 6 Photos: Baltimore officers in Freddie Gray case Edward Nero, one of three bike officers involved in the initial police encounter with Gray, , one of three bike officers involved in the initial police encounter with Gray, was found not guilty of all charges in May. He was accused of second-degree intentional assault, two counts of misconduct in office and reckless endangerment. Hide Caption 4 of 6 Photos: Baltimore officers in Freddie Gray case Garrett Miller was another one of the bike officers involved in Gray's arrest. He placed Gray in a restraining technique known as a "leg lace" before Gray was placed in the van, said Marilyn Mosby, the state's attorney for Baltimore. All charges were dropped against Miller, who had been indicted on charges of second-degree intentional assault, two counts of misconduct in office and reckless endangerment. Hide Caption 5 of 6 Photos: Baltimore officers in Freddie Gray case Sgt. Alicia White was present during one of the stops to check on Gray's condition. She and two other officers saw Gray unresponsive on the floor of the van, and when White spoke to Gray and he did not respond, she allegedly did nothing to help him, prosecutors said. All charges were dropped against White, who had been indicted on charges of involuntary manslaughter, second-degree negligent assault, misconduct in office and reckless endangerment. Hide Caption 6 of 6

CNN legal analyst Paul Callan said it is very difficult to sue prosecutors, who have what is called absolute immunity. Mosby's attorneys will argue she was acting within the scope of her job and is protected by such immunity.

In most cases against prosecutors, the defense files a motion to dismiss and the judges agree, Callan said.

"Even lawyers are sometimes shocked at how difficult it is to hold prosecutors responsible for patently improper actions," he said about prior cases.

But in some cases, the plaintiffs will argue that the prosecutor stepped out of his or her role and acted as law enforcement, who have qualified immunity.

Callan said he thinks the plaintiffs will argue that Mosby, an elected official, did become an investigator because of her belief that police were not properly pursuing the case and her desire to appease her political constituency.