Ruinous government-censored ISP problem is solved simply by feeding the ip info !?
Other software may bypass the system-level resolution for various reasons. (e.g. a software using DNS over HTTPS)
In addition to this, modern websites may have their IP addresses to change often because they are behind a CDN/proxying service like Cloudflare, Cloudfront, ... That is, continuously updating the /etc/hosts file by hand may be very tiring.