Shifting bars?

 
I am new to MQL4. Would someone please tell me the reason we would shift bars when using an indicator? Not sure why.
 
See for example Alligator indicator - 3 shifted MAs

Or Ichimoku Kinko Hyo contains shifted lines

If You don't need for shifting just don't use it