When a component or component pad is selected, you can use the cross-select function to locate the component position in the schematic
Shortcut key SHIFT+X, or component right-click menu for cross selection
This can also be used to cross-select when both the schematic and PCB have separate windows.
If you directly click the PCB component with the mouse, the components in the schematic window will also be positioned, but the canvas will not be moved. Using the shortcut key to cross-select can automatically move the canvas so that the component is in the center of the canvas.