No, it doesn't have to be the same spin speed - a 7200rpm will be noticeably faster.
There may be some other issues though. 5400rpm drives are fairly elderly now - so it may not have a high capacity, and may be in an older system.
Older systems have issues with larger capacity drives. There is a good write-up somewhere, I'll look for it.