> Why should I need to click on a dialog to grant permission to lldb to debug my own program?

Because apps and web browser tabs run as your user and otherwise they would be able to run lldb without authorization. So, this is the authorization.