Ajax desperately needed a new goalkeeper, as they have many injuries.
As Onana would've come anyway in the summer, it would be ridiculous to go for any other goalkeeper than Onana and therefore Ajax was prepared to pay a little money to get Onana this winter already.