That laptop seems to have shipped with Windows 7 and the software/drivers likely supported switchable graphics, meaning it would use the IGP for low-end graphics tasks and automatically switch to the discrete for video and gaming.
If you've upgraded it to Windows 10 the HP provided software for switchable graphics probably no longer works. If you want to force it to use the discrete graphics you could try disabling the IGP, either via BIOS or through Windows Device Manager.
Ryzen R7 5700X | B550 Gaming X | 2x16GB G.Skill 3600 | Radeon RX 7900XT
Ryzen R7 5700G | B550 Gaming X | 2x8GB G.Skill 4000 | Radeon Vega 8 IGP
Ryzen R5 5600 | B550 Gaming Edge | 4x8GB G.Skill 3600 | Radeon RX 6800XT