Bottom has no value, so a function which “returns” bottom can not terminate.
Practically, this means it either loops forever or “breaks” e.g. panics or exits the program.
So a function f: X -> void returns the only (nameless) value in void, depending on the programming language it will return null or equivalent or it'll just return no data (but it'll still return).
A function f: X -> Bottom is different, the type Bottom has no values so it is impossible for the function to ever return. This is not always useful, but in some strongly typed you need it to assign a value to an infinite loop.
Thanks for the explanation!
The second function terminates, same as the first one, there's no real difference between them.
A bottom-returning function would be something like
function foo() { for(;;) {} }
that genuinely never terminates and thus never exits.