In reality, basically every ability modifier would come into play in a sword swing. The system is abstracting this. The fact that rapiers "seem" more dexterous, then, seems like a valid argument for them using Dex, even if this is not the reality.