That’s not true. There’s an API to read from and write to Apple Health:
https://developer.apple.com/documentation/healthkitI’m not sure if that’s something the Pebble app uses right now, but it’s certainly possible, and a third-party app could make it happen as well.