Mocking might involve imitating, but it doesn't have to. It could just be making fun of or ridiculing something or someone. The idea of the two sentences is pretty much the same.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.