Why wifi can not act like a server and client at the same time?
It's a driver limitation. There is no reason a wifi radio couldn't be both a client and server at the same time, but no-one has written driver software to do that because there is no real demand and the amount of work is considerable.