Apple removed the lock screen's volume bar a few years ago with iOS 16, but you can bring it back to your screen now.