The phrase "inextensible string" and the fact it's tied down at a point, is what determines that the tension at every point along the string is the same:
"Inextensible" doesn't just meant that the whole length of the string doesn't change - it means it that no part of it can stretch at all. It's not a rubber-band that can stretch out more at one part and less on other parts. No part of the string can stretch at all. If you assume this, and that the string is tied down at one point (e.g., A) we can prove that the tension must be the same throughout the string:
If the tension was not the same throughout the string, imagine a short piece of the string - we can assume it's straight if it's short enough - where the tension on one end is different from the tension on the other part. In this case, this short straight piece of string is experiencing net force, and therefore accelerating in the direction of the string. Since we know one end of the string (e.g., A) is tied in place and not accelerating, it would mean that the string is stretching, which we assumed is not possible. So we can conclude that this acceleration is zero and therefore that the tension must be the same throughout the string.
By the way, if the string were not tied down at one end, it is possible for the tension to be different throughout the string! This can happen in a moving pulley (see for example https://xaktly.com/AtwoodsMachine.html), and also in a accelerating train being pulled at one end by a locomotive - the tension is not the same between each car, even though the cars are all moving in unison.