What about the beginning and end?
Beginning has a different meaning, end doesn't.
Btw there's nothing special about this sentence. The point is that the placement of the word only can change the meaning the sentence.
You will often hear people say something like "I only want one thing" when what they really mean is "I want only one thing."