Beepy Model M speaker mod

My IBM Model M keyboard came with an integrated PC speaker, but it wasn’t obvious what it’s meant to be used for. I came across it when doing the restoration, but didn’t think much of it.