I think it's more or less because to know your country they need to interrogate a third party service (geolocalization service) to identify your country from your IP which could lead to false positives and slow down the serving of the webpage altogether.
In addition to that "the country you're from" might not be the country you're phisically in or you might be using a VPN.
So, to avoid all of that it's easier to ask.
Same reason why websites shouldn't decide which language to serve the content in solely based on the IP address.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think it's more or less because to know your country they need to interrogate a third party service (geolocalization service) to identify your country from your IP which could lead to false positives and slow down the serving of the webpage altogether.
In addition to that "the country you're from" might not be the country you're phisically in or you might be using a VPN.
So, to avoid all of that it's easier to ask.
Same reason why websites shouldn't decide which language to serve the content in solely based on the IP address.