Because you can usually run shared libraries. Most shared libraries will crash when they run, but you can run them.
Some libraries have an entry point defined (-Wl, -e, the_name_of_your_entry_point, the main function in standard C programs), after which you can execute them without crashing.
source share