Why do stock or commodity prices sometimes rise suddenly just before market close?
This is often the case where traders are closing out short positions they don't want to hold overnight, for a variety of reasons that matter to them.  Most frequently, this is from day traders or high-frequency traders settling their accounts before the markets close.