Lady Aisha (may Allah be pleased with her) narrates that people used to do their work themselves, so they would go for Jumu'ah (Friday prayer) in that very state. Then they were instructed that if you perform ghusl (ritual bath), it is better.