I see people complaining about how Pygame is so slow, having a backend with C and SDL and Godot seems to have a great performance even using a Python-like language.
Godot is a game engine while Pygame is a cross-platform set of Python modules.
Game engines handle a lot of stuff related to game loop under the hood using a low level compiled language like C/C++. This means that developers can write scripts with higher level languages like C# or GDScript that contain methods that get invoked by the engine at certain points of the execution. The engine itself handles rendering, updating physics, polling for inputs and whatnot.
With Pygame you're likely writing the game loop yourself and calling bunch of libraries to poll for inputs, draw/render graphics, update physics etc. This means that a bigger chunk of the execution time gets spent executing python scripts than say GDScripts in Godot.
How does Godot manage to be fast with GDScript while Pygame is so slow with Python?