Can anyone explain what liquidity pool is?

I wanna know what this is.

Is it something that you throw your cryptocurrency into and expect revenue?
Will you be able to get it back whenever you want?
How does this work?
Thank you!

It depends on the project. Some projects like ETH2.0 keeps the crypto locked for a time, others allow to remove it.