This is done to safeguard your account from unauthorized activities. If your account is open without any screen activity for a period of time (usually 5 minutes or less), you get logged out. You can easily log in again with your credentials.