Probably the same way log4j 1.x avoided log4shell: the vulnerable code was introduced on a later release.