They have an epoxy coating with on the inside which contains BPA or BPA substitutes like BPB. Tetrapaks have a polyethylene liner and polyethylene and typically doesn’t have plasticizers added.
Do you know why the two plastics are different? I would naively expect that everything that would work as the inner layer in tetrapak would also work in cans (cans deform less). Is it that making the layer stick to tetrapak is simpler/different than making it stick to metal?
And, for the cans, it then cures in place. The BPA is like a catalyst and doesn't bind with the material, which is what allows it to leach out so well.
Polyethylene, in addition to being a safer molecule, uses catalysts which don't end up in the final product, which means you can't be exposed to them.