The pH of your skin should be around pH 5 … quite acidic … hence the term acid mantle.
The pH of foaming products is generally quite basic with bar soap commonly above pH 10, although there are some notable exceptions.
Your skin is not well equipped to handle this, and it can take up to 18 hours for your skin to recover to its normal pH after exposure to soap.