You're right, RichkyPerm, but it's less common to use /mati/ for a human being. It's more proper (at least according to my teachers of formal Indonesian) to say /meninggal dunia/ for the verb when a person dies. Indonesian does have an animacy hierarchy, which constrains which verbs are permitted to be used with which subjects.
Yeah, I understand. And this can be very frustrating or confusing. However, sometimes (or often?) literal word-for-word translation doesn't produce a natural-sounding sentence in another language. It's not just a word-swapping exercise; we have to know the conventional patterns of usage for the target language to express various concepts (beyond just the grammar), and the patterns for doing so will vary from one culture to another.
Examples for this abound, but here's one: In English, I say, "I make the bed." In Indonesian, I would say, "Saya membersihkan tempat tidur," rather than "Saya membuat tempat tidur." Now, I'm well aware that /membersihkan/ by itself literally means 'to clean (something)'. But that's the verb I was taught to use to express making my bed, because that's how the Indonesians I know express this idea. To be fair, even in English the statement "I make the bed" also doesn't (usually) mean that I'm literally creating, building, assembling, or constructing a bed out of all necessary component parts (whatever your cultural concept of a bed is) from the floor up, even though those are common meanings of the verb "to make."
I think this is part of a subsection in linguistics known as "Pragmatics." Here's another example: If you want to say "thank you" in Indonesian, you say /Terima kasih/ or the shortened form /Makasih/. That phrase literally means 'receive love', but it's also the pragmatic speech act by which you communicate your gratitude to someone else, because that's just how Indonesians do it.
So, yeah, translation isn't just different words with equivalent meanings in a target language. It can also be learning a mental/cultural map of how speakers of that language use it to describe and interact with the world. And all languages and cultures have some differences, which is part of what can make cross-cultural communication difficult.
And sometimes Duolingo just can't account for all of that.