Yeah, they’re both carbines designed around a pistol cartridge. Nothing wrong with that, it has it’s place, just not ideal for all situations.
The 5.7 is not a typical pistol cartridge. It’s closer to a 223 than a 45, especially with armor piercing ammo.