It is a calculation based on assumptions. They assumed that there was no prior event that caused it’s current trajectory. Direct evidence would have been Actually seeing it in another galaxy, but as of right now that isn’t exactly possible.
Cheers,
Scientists almost never expect to find "direct evidence."
Rather, several items of mutually-supporting indirect evidence are considered more than sufficient to work with.
Regards,