One cannot justify or explain why some people do strange things, tell bad jokes, or behave in an unacceptable way. "To account for" means to explain or show why. To account for the money a business made during a day is to show how the money was made (what was sold) and where the money is now.