PHP - assign value of function to class constant
In short: The constants are replaced while parsing, but functions are executed while interpreting. The parser simply cannot know to what it should set the value of the content.
Constants are immutable. Therefore, if functions could change the value of a constant it wouldn't be a constant.