Items table has interfaceid column. It is used by some items like agent items, but not by Script items.
When creating script item on a host using front-end (directly or by linking) - interfaceid is set to an empty value in the DB.
Server however, saves one of the existing host interfaces into the script item.
This is not directly visible by the user (as script items do not display their interface), but this is visible in the audit.
Server and front-end must provide the constant behaviour while linking script items.