Pedersen commitments in Monero use two different generator points to ensure security. One point masks the amount while the other point, with an unknown factor, ensures that the commitment remains secure. If the factor were known, it could potentially compromise the security by linking the commitments to the actual amounts.