I'm going to assume that you mean attacking moves because it's not that surprising to have two moves with the same type but one is attacking and the other is status
In general, either the Pokemon in question has a shallow movepool or both moves have different purposes. A perfect example for this is Ash Greninja where it always has hydro miss/surf and water shuriken. Both of these moves have completely different purposes. The first is a nuke to activate its ability or to just douse something in water and the other is for sweeping or revenge killing
Another example is Kingdra, who usually carries meteor, hydro pump, ice beam and surf. Both of its water moves can be used for different purposes. One is for a powerful early or mid battle wallbreaking and the other is more useful for late game sweeping due to its accuracy
So bottomline, most of the time, it's because the two moves are needed for different purposes that cannot be covered with just one move, or the other move in question has severe drawbacks such in the case of hydro miss