I believe it was an extra detail showing how Anakin has fallen under the Son’s influence. Ahsoka had similar dark rings around her eyes when the Son corrupted her as well.
Swayed by visions of his dark future, it didn’t take much effort for the Son to convince Anakin that joining him would prevent said visions from coming true. The difference between Anakin in S3E17 and ROTS is Anakin was power hungry and he wasn’t looking to rule the galaxy. He was looking to stop Palpatine from destroying the galaxy and his life. I know that has almost nothing to do with the dark rings around his eyes but I love examining Anakin’s character.