They're still pretty common in some parts of the world, particularly ones where gas stoves are ubiquitous. I haven't seen an electric kettle with a whistle, because it doesn't make much sense - if you have an on/of switch, you can also make auto-shutoff - but with stove-heated kettles, there's no on/off switch, hence the need for a loud boiling indicator.