Because you apparently do not understand the servlet life cycle. Which books/articles/tutorials have you read about that? If the answer is "none", start by doing that. If the answer is something other than "none", the follow-up question is "what did or did you not understand about what you read?".