Because almost every command makes calls to the framework, and is range checked, memory securely allocated, checked when free, etc. Compared to direct compiled C it becomes very slow. But, you must also weigh against that how much work is being done by each line of code, and how long it would take to write the same functionality in a simple language. There are always pros and cons, nothing for free.
Git