The "oil" in the lamps represent the Holy Spirit, 5 had their lamps full when the announcement was made the Bridegroom was coming, 5 had no "oil" in their lamps. In other words, the Holy Spirit was no longer present.
It was to late for the "oil" now, they had lost His presence.
I will now open...