Those sites probably track your IP address. So when you connect to the VPN and your IP address changes (because you are now connected to a different network), the sites most likely determine you are connecting on a different network and invalidate your session, hence, you have to login.