There are many occurrences of user_get_field( <id>, 'username' ) to retrieve a user's username in MantisBT codebase.

Since this is a common usage scenario, it makes sense to have a dedicated API function for this, similar to user_get_realname(); it would also avoid confusion with user_get_name(), which serves a different purpose (display).