That's a notification of a free game for a match after the game is over, or your bonus on the last ball made your score earn a replay.
It's a knocker attached to the side of the cabinet, or backbox that basically is a solenoid with a doorbell plunger in it, that when it fires "knocks" on the side of the cabinet.
Or you have a lot of golf balls inside your game.