What is need of separate code for queue implementation using stack?

Can’t we use ‘reverse a stack’ code to implement dequeue?
What I mean is that if we reversed a stack, dequeue will work by just popping the elements from stack right?
For example : 1,2,3,4,5 - Intial stack
1,2,3,4,5 - Desired Dequeue output
5,4,3,2,1

Can’t we use ‘reverse a stack’ code to implement dequeue? What I mean is that if we reversed a stack, dequeue will work by just popping the elements from stack right? For example : 1,2,3,4,5 - Intial stack 1,2,3,4,5 - Desired Dequeue output 5,4,3,2,1