How does blueprint system technically work?

The majority of the nodes are just C++ functions that you can call from BP, just like you would expect from a “regular” in-game scripting language (for example, Lua).