How is ~/bin added to my path?

In your ~/.profile you find these lines:

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

It is here that, if exists as a directory, ~/bin is added to your PATH.