Because strip() returns a copy of the string that you provided without the characters that you gave as input.
For example:
"12345".strip('123') returns: '45'.
So, strip() does not remove words or something but removes all the characters that the string that you give as input has, both from the end and the beginning of the string that you want to strip.