There is no 'necessary connection' between what is legal and what is moral. [=what is legal does not always have to be moral and what is moral does not always have to be legal]
Higher prices are a 'necessary consequence' of the company's new services.
I'll 'do the necessary' [=do whatever is necessary] to get the job done.
(..) Mac. He was a good soldier. He was... my friend. Goodbye, bro. Blazer One, I repeat, extraction necessary. Say again, Blazer One. Say again. Roger, Blazer One. hours. Damn bastards. They say we're still in too far. They can't risk coming in. (..)1987 Predator