A public key is also a "script pubkey" a sequence of instructions in bitcoin script that provide the rules for spending a coin.
Why this name? Shouldn't that be called "redeem script" or something like that? (yeah I know there's a redeemScript related to multisig addresses but that's a relatively recent development).