Mixing sharding and Replica in MongoDB cluster
In MongoDB 3.6 and newer, shards must be deployed as a replica set. Replication provides data redundancy and high availability for each shard; sharding enables a collection to be distributed across multiple shards.

For more information see Sharded Cluster Components and the Deploy 
a Sharded Cluster tutorial in the MongoDB documentation.