These are the cases which Germany wants to avoid: "Scheinehe", where people get paid to marry and give the other person an "Aufenthalts- und Arbeitserlaubnis" -> allowed to stay and work in Germany.
Ironically, on the one hand, the government views marriage officially as a "contract"; on the other hand, if it is "just a contract" between two consenting adults, then it is considered fraud! It makes little sense.
I think it is outrageous for a government to allege, or even just to investigate, particular causes for marriage unless one of the parties was coerced into it rather than wanting it out of their own free will.
Lets combat marriage fraud by making it a kafkaesque ordeal to get married in the first place.
Big brain move, how many innocent couples get caught in the net, versus how many fraudsters can you realistically catch (organized crime has figured out how to game the bureaucracy, no doubt).
There is quite a business around this.