It won’t and it isn’t.
How do you know if security works? If it stops passport fraud completely on international flights then it will appear to be unnecessary. Same with vaccines. They seem to eradicate a disease and everyone gets complacent. Then your kid gets polio from a passport fraud illegal and dies...