In short, there are install space and development space. If you source devel/setup.bash then roscd beginner_tutorials should bring you to ~/catkin_ws/src/beginner_tutorials. But if you source install/setup.bash then it will bring you to the directory where the package was installed.