The word "shore" can be used to refer to the land along the edge of a body of water, such as a lake, river, or ocean. When we use the phrase "shore of a lake", we are specifically referring to the land along the edge of a lake. For example, we could say "I went for a walk along the shore of the lake".
However, we can also use the word "shore" on its own to refer to the land along the edge of a body of water, without specifying what type of body of water it is. For example, we could say "I went for a walk along the shore". In this case, it would be understood that we are talking about the land along the edge of a body of water, but it would not be clear whether we are talking about a lake, river, or ocean.