The purpose of the idler pulley is to maintain the correct belt tension at all times. It also helps to smooth out imperfections in the belt tension caused by the engine and ancillaries. Don’t forget an engine isn’t smooth and each cylinder firing applies a force on the belt. Alternator loads changing cause small changes in load and tension (though the alternator itself has a special pulley designed to reduce that). Etc.

