PC overheats during folder scanning

I noticed that when V begin scanning the media folders my pc (connected to the GUI) gets overheated, the CPU fan hitting record RPMs. When I close the browser GUI tab everything goes back to normal. SSH/journalctl shows that the scanning process continues also when I am not connected to the GUI.

Why is my pc overheated? Is this the expected behavior? Could anything be done?