Parser::getFunctionLang() is identical to Parser::getTargetLanguage(). It's an artifact of an earlier stage in the parser. It should be deprecated and removed.
These functions have been identical since the creation of Parser::getTargetLanguage() in 7df3473cfea59df53debb7a9eefffed8a7f20fb3 (2012, MW 1.19).
See also T114640: make Parser::getTargetLanguage aware of multilingual wikis and T202481: Parser should have a msg() helper function so people don't localize messages improperly.