The answer is that your shower and toilet most likely share a drain line and vent stack. The gurgling noise you're hearing is caused by the air being forced up or down your toilet if either the line or the stack has a problem. A sewer drain is blocked.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.