Lot of things.
Low water pressure and low water volume.
If pipe size is to small or a restriction like a partially closed valve, or scale build up in the line that reduces the inside diameter of the pipe will effect the volume.
Low pressure can have an effect as well but it would have to be pretty low to cause the shower to just trickle if a only a sink faucet was opened.