I was reading up on Pedersen commitment over at this website: https://asecuritysite.com/encryption/ped, where they calculate $h=g^s \bmod p$, and they say that $s$ must be a secret.
I wonder why this is a requirement? Since verifiers will know the value of both $h$ and $g$ anyways, and a random value $r$ is used for creating the commitment, I don't see why $s$ must be kept secret?