It's a pressure effect that causes bubbles to form, and can occur as a result of poor inlet flow (but there are many more causes, it's a really complicated effect). In short, whenever you regulate a pump, you should always regulate the output, not the input, to avoid things like backpressure...