The strong key size is required to prevent bruteforcing of the private key or at least delay it.
To check the strength of a key:
ssh-keygen -l -f ~/.ssh/id_rsa
To check the strength of a key that you use in GitHub or GitLab:
Recommended key sizes are as follows:
If you want to create a new strong SSH key, the GitHub docs provide a great starting point.