No of conections more than configured maxPoolSize

I have configured maxPoolSize of 50 and there are two servers. But the connections should in aws docdb is 800 which is too much. how can this be possible