It seems quite possible to take a sedan and replace the back seat and trunk with a bed and still meet requirements. I'm sure that configuration is a bit less aerodynamic, but it shouldn't be a deal breaker.
Meanwhile companies like Ford are not selling any sedans at all. It seems they think it's more profitable to sell only light trucks and SUVs.
That makes me doubt that the manufacturers "can't" produce compact trucks.