I can?t speak to Garmin, but other vendors use the horsepower chart data from your engine manual. I suspect Garmin May do something similar, since they have no idea which engine is in your aircraft.
"Estimated engine power can be calculated for Lycoming and Continental engines, using inputs from RPM, Manifold pressure, and Fuel Flow sensors (All three are required for engine power calculations)."