Galadriel meant to show Frodo all that was at stake and to make him realize how important his quest was to the fate of Middle-earth. She also wanted him to realize that he must make hard decisions to succeed.