If your water provider says it's potable I'm not going to question it, but I have yet to see a provider that makes such a claim about their hot water. It is difficult to make a statement that would apply worldwide, but where I live, it is easier to keep legionella out of cold water even if the infrastructure for hot and cold is the same.[1]
[1]: [Czech language] https://www.moni.cz/aktuality/tepla-voda-jako-pitna