Language is a living thing so it evolves with time, and undergoes phonological changes. What a language is today is far from what it was centuries ago. One way or the other all Romance languages have “lenition” which means "softening" of the syllables, mostly the last one. This comes from Latin with its regular rules for word stress, and they are rarely on the last syllable. Therefore, the farther something is from the stress, the less loud it will sound.
Many Spanish speakers do not pronounce the last syllable of different words, and they take that rule into the way they speak English by chopping off the last syllable of certain words. Portuguese do not pronounce the M at the end of their words. It became rather a nasal sound that is hard to mimic. English has lots of non pronounced letters like in the word “Know” we do not hear the K, making it just “No”. The word “Light” or “Though” the GH is not pronounced but in “Tough” it became an F. In the word “Salmon” the L has been dropped, etc.
When it comes to French, they preserved the last, loudest part of the word as it sounded in Latin. As a rule of thumb, when in doubt which consonant at the end of a French word should be pronounced, remember the word CaReFuL. All these consonants are pronounced when they end a French word (of course, there are exceptions to the rule). When I get a new student for the French language, I always tell them to be prepared to get two for the price of one. We have the written French and then comes the spoken French!