Perhaps it could be implemented for more units.
I think most ranged units could have a weak melee attack like in AOE3.
Thureophoroi, Hastati, German spearmen, Celtic spearmen, Iberian infantry, could throw a single spear before melee.
This distinction might be partially due to gameplay limitations, i'm not sure weapon switching was implemented yet.
So ranged and melee ships are separated.