This splits identified people, not crimes: most recorded offences have no identified suspect. The figures count arrests, convictions or prisoners, not the crimes committed. Police solve only part of the offences they record, and the solved part need not be representative of the rest.
People born abroad who have naturalised count as nationals, not as foreign nationals. Police and courts record nationality, not place of birth. A person born abroad who has naturalised counts as a national, in both the justice and the population figures.
The source records only nationality: foreign nationals include residents and visitors, who cannot be told apart. Tourists, cross-border commuters and people without legal residence count as foreign nationals but are not in the resident population. The site does not estimate how many of the foreign nationals are non-residents.
The German figures come without residents by nationality for this area, so there is no share of residents. The total leaves out offences only a foreign national can commit (residence, asylum and free-movement law).