I've had this recently as well, even with a few years of software dev experience. It was for a software dev role. I graduated with electrical however, and was met with whiteboarding random hardware questions. Circuit theory, bit fiddling questions, op-amps, even using a spectrum analyzer. I had to dig deep on the spot from my school years. I managed an offer for the software position but I was so confused. I waited a week and took an offer for a more exciting position. It was very strange.