If you come in from outside Europe the first landing on EU soil you should have to clear customs.
And they will also want you to go through security again as well.
As such the airline has no control over what's required.
Some airports as well have no way from getting from the outside EU side of things to the internal EU flights without going ground side.
You can't clear customs if your bag is transferred.